Function at 0x416d90
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov eax, 0x204c
push esi
push ebx
call fcn.005e3260
sub esp, eax
mov esi, ecx
lea edi, [esp + 0x40]
mov dword [esp + 4], 0x730284
mov dword [esp + 8], edi
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00413980
sub esp, 0xc
mov dword [esp + 4], 0x73028c
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__wfopen]
test eax, eax
je 0x416e7b
mov ebx, eax
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.005e9f50
mov dword [esp], ebx
call fcn.005e9c30
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov ebp, eax
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.005e9f50
lea eax, [esp + 0x31]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 3
mov dword [esp], eax
call sub.msvcrt.dll_fread
lea eax, [esp + 0x34]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp word [esp + 0x31], 0x4453
mov eax, dword [esp + 0x34]
je 0x416e90
cmp eax, 0x204
je 0x416ea0
add esp, 0x204c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [esp + 0x33], 0x57
jne 0x416e74
cmp eax, 0x205
jne 0x416e74
nop
cmp word [0x8551a0], 0
jne 0x416e7b
sub ebp, 7
mov dword [esp], ebp
call fcn.006fec20
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fread
test byte [0x8671a0], 2
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], 0
jne 0x4170a0
lea eax, [edx + 8]
mov ecx, dword [edx + 4]
mov ebp, dword [edx]
mov edx, dword [esi + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x48]
test ecx, ecx
cmove ecx, ebp
sub eax, edx
sar eax, 2
imul eax, eax, 0x3e0f83e1
cmp ecx, eax
ja 0x417160
jae 0x416f21
imul ecx, ecx, 0x84
add ecx, edx
mov dword [esi + 0x48], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebp
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
add ebp, dword [esp + 0x20]
mov ecx, dword [esi + 0x50]
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
add ebp, 8
test eax, eax
mov dword [esp + 0x20], edx
cmove eax, edx
mov edx, dword [esi + 0x54]
mov dword [esp + 0x28], edx
sub edx, ecx
sar edx, 4
cmp eax, edx
ja 0x4170f3
jae 0x416f6c
shl eax, 4
add eax, ecx
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], ebp
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x5c]
add eax, ebp
mov ebp, dword [eax]
mov edx, dword [eax + 4]
add eax, 8
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x60]
test edx, edx
cmove edx, ebp
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp edx, eax
ja 0x4171a0
jae 0x416fbb
lea eax, [edx + edx*2]
lea eax, [ecx + eax*8]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebp
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x68]
add eax, ebp
mov ebp, dword [eax]
mov edx, dword [eax + 4]
add eax, 8
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x6c]
test edx, edx
cmove edx, ebp
sub eax, ecx
sar eax, 2
imul eax, eax, 0xaaaaaaab
cmp edx, eax
ja 0x417180
jae 0x41700a
lea eax, [edx + edx*2]
lea eax, [ecx + eax*4]
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x20]
mov dword [esp], ecx
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
add ebp, dword [esp + 0x20]
lea eax, [esi + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.005f6c30
lea ecx, [esi + 0x10]
mov dword [esp], eax
call fcn.00404410
sub esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41705e
mov dword [esp], eax
call fcn.006febd0
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
lea ecx, [esi + 0x74]
call fcn.00403760
mov dword [esp], edi
mov dword [esp + 4], 0x7306de
call sub.SHELL32.dll_StrStrIW
sub esp, 8
test eax, eax
setne al
movzx eax, al
add eax, 1
mov dword [esi + 8], eax
add esp, 0x204c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.00462ec0
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov dword [esp + 0x20], ecx
call fcn.006fec20
mov ecx, dword [esp + 0x20]
mov edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call fcn.00404250
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], edx
jmp 0x416eea
sub eax, edx
mov edx, eax
mov dword [esp + 0x2c], eax
je 0x416f6c
mov eax, dword [esi + 0x58]
sub eax, dword [esp + 0x28]
sar eax, 4
cmp edx, eax
ja 0x4171b8
mov eax, dword [esp + 0x28]
mov esi, esi
lea edi, [edi]
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, 0x10
mov dword [eax - 8], 0
mov dword [eax - 4], 0
sub edx, 1
jne 0x417120
mov eax, dword [esp + 0x2c]
shl eax, 4
add eax, dword [esp + 0x28]
mov dword [esi + 0x54], eax
jmp 0x416f6c
lea edx, [esi + 0x44]
sub ecx, eax
mov dword [esp], ecx
mov ecx, edx
call fcn.006b49a0
mov edx, dword [esi + 0x44]
sub esp, 4
jmp 0x416f21
lea ecx, [esi + 0x68]
sub edx, eax
mov dword [esp], edx
call fcn.006b3d90
mov ecx, dword [esi + 0x68]
sub esp, 4
jmp 0x41700a
lea ecx, [esi + 0x5c]
sub edx, eax
mov dword [esp], edx
call fcn.006b4350
mov ecx, dword [esi + 0x5c]
sub esp, 4
jmp 0x416fbb
lea ecx, [esi + 0x50]
mov dword [esp], edx
call fcn.004127d0
mov ecx, dword [esi + 0x50]
sub esp, 4
jmp 0x416f6c