Function at 0x41239f
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1c4]
sub esp, 0x244
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp + 0x1c0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1cc]
xor eax, eax
push 0x206
mov word [ebp - 0x48], ax
xor ebx, ebx
lea eax, [ebp - 0x46]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x5c], edi
call fcn.0043a190
add esp, 0xc
push 0x208
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x462020
lea eax, [ebp - 0x48]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x412548
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
cmp dword [esi + 0x2c], eax
jne 0x41244d
cmp dword [esi + 0x30], ecx
jne 0x41244d
mov edx, dword [esi + 0x28]
cmp edx, dword [ebp - 0x68]
jne 0x41244d
mov edx, dword [esi + 0x24]
cmp edx, dword [ebp - 0x6c]
jne 0x41244d
xor eax, eax
mov dword [edi], ebx
inc eax
jmp 0x41254a
cmp eax, ebx
ja 0x412548
cmp ecx, 0x800000
jae 0x412548
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x412477
xor eax, eax
jmp 0x412490
lea edi, [eax + eax]
mov eax, edi
call fcn.0043bc40
mov eax, esp
push 3
push edi
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.004099a6
push 0x462038
push eax
call fcn.0043cb67
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x412548
mov edi, dword [ebp - 0x60]
push eax
push 4
lea eax, [ebp - 0x58]
push 1
push eax
mov dword [ebp - 0x58], ebx
call fcn.0043ca86
add esp, 0x10
cmp eax, 4
jne 0x41253f
cmp dword [ebp - 0x58], 1
jne 0x41259c
lea eax, [edi - 4]
mov edi, 0xaa0
xor edx, edx
mov ecx, edi
div ecx
mov ebx, eax
test edx, edx
jne 0x41253f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4124f4
push eax
call fcn.0043a3fc
and dword [esi + 0xc], 0
pop ecx
and dword [esi + 8], 0
push 0
push 4
push dword [ebp - 0x4c]
call fcn.0043c761
mov eax, ebx
imul eax, eax, 0xaa0
push eax
call fcn.0043af83
add esp, 0x10
mov dword [esi + 0xc], eax
test eax, eax
je 0x41253f
push dword [ebp - 0x4c]
push ebx
push edi
push eax
call fcn.0043ca86
add esp, 0x10
cmp eax, ebx
je 0x41256a
push dword [esi + 0xc]
call fcn.0043a3fc
and dword [esi + 0xc], 0
and dword [esi + 8], 0
pop ecx
push dword [ebp - 0x4c]
call fcn.0043b197
pop ecx
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1c0]
xor ecx, ebp
call fcn.0043a7c3
add ebp, 0x1c4
leave
ret 4
test ebx, ebx
jle 0x412592
and dword [ebp - 0x50], 0
mov dword [ebp - 0x54], ebx
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x50]
push edi
push 0x444e3351
push eax
call fcn.0040fabe
add dword [ebp - 0x50], edi
add esp, 0xc
dec dword [ebp - 0x54]
jne 0x412575
mov dword [esi + 8], ebx
mov dword [esi + 4], 1
push 9
pop ecx
push dword [ebp - 0x4c]
lea edi, [esi + 0x10]
lea esi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
call fcn.0043b197
xor eax, eax
pop ecx
mov ecx, dword [ebp - 0x5c]
inc eax
mov dword [ecx], eax
jmp 0x41254a