Function at 0x438624
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de432
mov eax, dword fs:[0]
push eax
mov eax, 0x12c4
call fcn.004b4e80
mov eax, dword [0x510918]
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
mov dword [ebp - 0x12c4], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor bl, bl
push eax
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x12c0], ebx
call fcn.004014c0
and dword [ebp - 4], 0
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x12bc]
lea esi, [ebp - 0x1028]
cmovae esi, dword [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x1028]
call fcn.00402040
mov eax, dword [eax]
jmp 0x4386b3
cmp word [esi], 0x5c
jne 0x4386b0
push 0x2f
pop ecx
mov word [esi], cx
add esi, 2
cmp esi, eax
jne 0x4386a4
cmp dword [edi + 0x14], 8
jb 0x4386c1
mov eax, dword [edi]
jmp 0x4386c3
mov eax, edi
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push ecx
push SHChangeNotifyRegister
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x12d0], esi
xor eax, eax
inc eax
mov byte [ebp - 4], al
test esi, esi
je 0x438879
xor ebx, ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x12cc], ebx
mov dword [ebp - 0x12c8], ebx
jb 0x438707
mov edi, dword [edi]
lea eax, [ebp - 0x12b8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x438737
lea eax, [ebp - 0x12cc]
push eax
lea eax, [ebp - 0x12a4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x104c], ebx
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1034]
push eax
lea eax, [ebp - 0x1032]
push eax
lea eax, [ebp - 0x12cc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
xor eax, eax
inc eax
push eax
lea edx, [ebp - 0x1028]
lea ecx, [ebp - 0x1064]
call fcn.00428ed3
pop ecx
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x438787
mov eax, dword [eax]
sub esp, 0x34
lea ecx, [ebp - 0x104c]
push ecx
mov ecx, dword [ebp - 0x12c4]
mov edx, eax
mov ecx, dword [ecx]
call fcn.0044ef00
mov ebx, eax
add esp, 0x38
neg ebx
sbb bl, bl
xor eax, eax
inc eax
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], al
call fcn.00404b40
inc bl
je 0x43886c
xor ebx, ebx
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.004acf20
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov dword [ebp - 0x12bc], ebx
jmp 0x438832
cmp dword [ebp - 0x12bc], ebx
je 0x43884d
mov eax, dword [ebp - 0x12c4]
push dword [ebp - 0x12bc]
mov ecx, dword [eax]
lea edx, [ebp - 0x1010]
call fcn.0044f2f6
pop ecx
test eax, eax
jne 0x438832
mov eax, dword [ebp - 0x12c0]
cmp dword [ebp - 0x12bc], 0x1000
movzx eax, al
push 1
pop ecx
cmovb eax, ecx
mov dword [ebp - 0x12c0], eax
push ebx
lea eax, [ebp - 0x12bc]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call edi
test eax, eax
jne 0x4387ed
mov eax, dword [ebp - 0x12c4]
push ecx
mov ecx, dword [eax]
call fcn.0044f3e7
mov ebx, dword [ebp - 0x12c0]
neg eax
sbb al, al
inc al
pop ecx
and bl, al
jmp 0x438872
mov ebx, dword [ebp - 0x12c0]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1028]
call fcn.00403170
mov al, bl
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.004a2964
leave
ret 8