Function at 0x4135b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4268ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
push esi
call fcn.00417441
add esp, 4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [0x435b58]
mov eax, dword [ebp - 0x24]
sbb eax, dword [0x435b5c]
push 0
push 0xf4240
push eax
push ecx
call fcn.004258f0
push dword [0x435b6c]
push dword [0x435b68]
push edx
push eax
call fcn.00425d00
push 0x1000
push 1
mov dword [0x435a38], eax
mov dword [0x435a3c], 0
call fcn.00419433
mov dword [0x435a4c], eax
add esp, 8
mov eax, dword [0x4339f0]
mov dword [0x435a50], 0x1000
mov word [0x435a58], 0x100
mov dword [0x435a54], 0
mov dword [eax + 0x64], 0x5f
mov dword [eax + 0x68], 0xaf
mov dword [eax + 0x78], 0x9b
mov dword [eax + 0x74], 0x4b
mov dword [eax + 0x84], 0x87
mov dword [eax + 0x88], 0x3c
mov dword [eax + 0x98], 0x1e
mov dword [eax + 0x94], 0x7f
mov dword [eax + 0xa4], 0xc3
mov dword [eax + 0xa8], 0x28
mov dword [eax + 0xb8], 0xa
mov dword [eax + 0xb4], 0xc3
mov dword [eax + 0xc4], 0xfe
mov dword [eax + 0xc8], 0x3c
mov dword [eax + 0xd8], 0x1e
mov dword [eax + 0xd4], 0x106
mov dword [eax + 0xe4], 0x12c
mov dword [eax + 0xe8], 0x5f
mov dword [eax + 0xf8], 0x49
mov dword [eax + 0xf4], 0x13c
mov dword [eax + 0x104], 0x435a78
mov dword [eax + 0x108], 0xa
mov dword [eax + 0x6c], 0x7d
mov dword [eax + 0x70], 0xcd
mov dword [eax + 0x7c], 0x69
mov dword [eax + 0x80], 0xb9
mov dword [eax + 0x8c], 0xa5
mov dword [eax + 0x90], 0x5a
mov dword [eax + 0x9c], 0x9d
mov dword [eax + 0xa0], 0x3c
mov dword [eax + 0xac], 0xe1
mov dword [eax + 0xb0], 0x46
mov dword [eax + 0xbc], 0xe1
mov dword [eax + 0xc0], 0x28
mov dword [eax + 0xcc], 0x11c
mov dword [eax + 0xd0], 0x5a
mov dword [eax + 0xdc], 0x124
mov dword [eax + 0xe0], 0x3c
mov dword [eax + 0xec], 0x14a
mov dword [eax + 0xf0], 0x7d
mov dword [eax + 0xfc], 0x15a
mov dword [eax + 0x100], 0x67
mov byte [eax + 0x12a], 1
mov dword [0x4328c0], 1
mov dword [0x433a08], 0x4328c0
mov dword [0x433a18], 0
call fcn.00409be0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 0
movq qword [ebp - 0x1c], xmm0
lea ecx, [ebp - 0x1c]
push 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00411e20
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41387d
push eax
call fcn.0041943e
add esp, 4
mov dword [ebp - 0x1c], 0
push 0x2010
push 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x2004
call fcn.00419433
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4138ee
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4138bf
push eax
call fcn.0041943e
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call fcn.00409710
test al, al
je 0x4139bc
call fcn.00409610
test al, al
je 0x4139bc
mov al, 1
jmp 0x4139be
mov dword [eax], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
add eax, 0xc
push 0
push eax
call fcn.004159c0
mov edi, dword [ebp - 0x1c]
add esp, 0xc
mov ebx, dword [0x432950]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.FlashStorage.flash
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x413965
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4138a4
cmp dword [eax], 0
je 0x4138a4
lea ecx, [ebp - 0x1c]
call fcn.00409410
mov dword [ebp - 4], 0xffffffff
mov bl, al
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4139a1
push ecx
call fcn.0041943e
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
test bl, bl
jne 0x4138e7
jmp 0x4138cd
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004143eb
mov esp, ebp
pop ebp
ret