Function at 0x439e90
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x485118]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
call fcn.0043a6a9
push 0x2dc
push ebx
push esi
mov dword [ebp - 0x408], eax
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x404]
push eax
call fcn.00438386
test eax, eax
je 0x43a243
push edi
push 7
lea eax, [ebp - 0x404]
push eax
push 0x403e68
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x404]
push 0x4018fc
push eax
call sub.msvcrt.dll__wfopen
mov edi, eax
add esp, 0x18
cmp edi, ebx
mov dword [ebp - 0x414], edi
je 0x43a242
push edi
call sub.msvcrt.dll_feof
test eax, eax
pop ecx
jne 0x43a242
lea eax, [ebp - 0x408]
push eax
push edi
inc ebx
push ebx
push esi
call fcn.00439c9a
lea ecx, [ebp - 0x408]
push ecx
push edi
lea eax, [esi + 1]
push ebx
push eax
call fcn.00439c9a
lea eax, [ebp - 0x408]
push eax
push edi
push ebx
lea eax, [esi + 2]
push eax
call fcn.00439c9a
lea eax, [ebp - 0x408]
push eax
push edi
push 0xc8
lea eax, [esi + 4]
push eax
call fcn.00439c9a
lea eax, [ebp - 0x408]
push eax
push edi
push 0x1fe
lea eax, [esi + 0xcc]
push eax
call fcn.00439c9a
lea eax, [ebp - 0x408]
push eax
push edi
push ebx
lea eax, [esi + 0x2ca]
push eax
call fcn.00439c9a
lea eax, [ebp - 0x408]
push eax
push edi
push 4
lea ebx, [esi + 0x2cc]
push ebx
call fcn.00439c9a
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x414]
lea edi, [esi + 0x2d0]
push 4
push edi
call fcn.00439c9a
mov ebx, dword [ebx]
cmp dword [edi], ebx
jle 0x439fd8
mov dword [edi], ebx
cmp byte [esi], 4
jbe 0x43a001
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x414]
lea ebx, [esi + 0x2d4]
push 4
push ebx
call fcn.00439c9a
cmp byte [esi], 4
ja 0x43a19b
cmp dword [edi], 0
jle 0x43a1e6
lea ebx, [esi + 0x2cc]
mov eax, dword [ebx]
imul eax, eax, 0x1fe
push eax
call fcn.0043565b
mov dword [ebp - 0x41c], eax
mov eax, dword [edi]
imul eax, eax, 0x208
push eax
call fcn.0043565b
cmp byte [esi], 2
mov dword [esi + 0x2d8], eax
ja 0x43a0f2
cmp byte [esi + 1], 3
ja 0x43a0f2
mov eax, dword [ebx]
shl eax, 6
push eax
call fcn.0043565b
mov ebx, eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x414]
mov eax, dword [edi]
shl eax, 6
push eax
push ebx
mov dword [ebp - 0x420], ebx
call fcn.00439c9a
mov ecx, dword [edi]
mov dword [ebp - 0x40c], eax
mov eax, ecx
xor edx, edx
shl eax, 6
cmp dword [ebp - 0x40c], eax
sete dl
test edx, edx
mov dword [ebp - 0x418], edx
je 0x43a0e5
and dword [ebp - 0x40c], 0
test ecx, ecx
jle 0x43a0e5
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x410], eax
mov edx, dword [ebp - 0x410]
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x43a0ba
inc dword [ebp - 0x40c]
mov eax, dword [ebp - 0x40c]
add dword [ebp - 0x410], 0x1fe
add ebx, 0x40
cmp eax, dword [edi]
jl 0x43a0b0
push dword [ebp - 0x420]
call fcn.0043567b
jmp 0x43a128
lea eax, [ebp - 0x408]
push eax
mov eax, dword [edi]
push dword [ebp - 0x414]
imul eax, eax, 0x1fe
push eax
push dword [ebp - 0x41c]
call fcn.00439c9a
mov ecx, dword [edi]
imul ecx, ecx, 0x1fe
xor edx, edx
cmp eax, ecx
sete dl
mov dword [ebp - 0x418], edx
xor edx, edx
cmp dword [edi], edx
mov dword [ebp - 0x410], edx
jle 0x43a18e
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x40c], eax
mov eax, dword [esi + 0x2d8]
mov ebx, dword [ebp - 0x40c]
add eax, edx
movzx ecx, word [ebx]
inc ebx
mov word [eax], cx
inc ebx
inc eax
inc eax
test cx, cx
jne 0x43a14e
mov eax, dword [esi + 0x2d8]
inc dword [ebp - 0x410]
add dword [ebp - 0x40c], 0x1fe
mov dword [eax + edx + 0x200], 1
mov eax, dword [ebp - 0x410]
add edx, 0x208
cmp eax, dword [edi]
jl 0x43a140
push dword [ebp - 0x41c]
call fcn.0043567b
jmp 0x43a1f7
mov eax, dword [ebx]
test eax, eax
jle 0x43a1e6
imul eax, eax, 0x208
push eax
call fcn.0043565b
lea ecx, [ebp - 0x408]
push ecx
mov ecx, dword [ebx]
push dword [ebp - 0x414]
imul ecx, ecx, 0x208
push ecx
push eax
mov dword [esi + 0x2d8], eax
call fcn.00439c9a
mov ecx, dword [ebx]
imul ecx, ecx, 0x208
xor edx, edx
cmp eax, ecx
sete dl
mov dword [ebp - 0x418], edx
jmp 0x43a1f7
and dword [esi + 0x2d8], 0
mov dword [ebp - 0x418], 1
push dword [ebp - 0x414]
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x424]
push 4
push eax
call sub.msvcrt.dll_fread
push dword [ebp - 0x414]
call sub.msvcrt.dll_fclose
add esp, 0x14
cmp dword [ebp - 0x418], 0
je 0x43a234
mov eax, dword [ebp - 0x424]
cmp eax, dword [ebp - 0x408]
je 0x43a236
xor ebx, ebx
push dword [esi + 0x2cc]
push esi
call fcn.00439af2
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004347dd
leave
ret 4