Function at 0x4576e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46bc9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x510
mov eax, dword [0x48644c]
push ebx
push esi
push edi
mov dword [esp + 0x514], eax
mov eax, dword [ebp + 8]
push 0x46f360
push eax
mov dword [esp + 0x38], 0x4c8
call dword [sym.imp.MSVCR71.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x457c36
call fcn.0045bc00
push 0x10
mov dword [esp + 0x28], eax
mov edx, dword [eax]
push str.9A7FCFFD_86CE_4293_869B_61ED963C57EC
mov ecx, eax
call dword [edx + 4]
mov edi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push ebx
call edi
push ebx
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push ebx
mov esi, eax
call edi
add esp, 0x1c
push 0x46e89c
lea ecx, [esp + 0x18]
call fcn.00457410
mov eax, dword [0x48eb20]
mov ecx, 0x48eb20
mov dword [esp + 0x524], 0
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x48], 0
xor eax, eax
mov ecx, 0x131
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
push ecx
push 1
stosw word es:[edi], ax
lea edx, [esp + 0x50]
push esi
push edx
mov byte [esp + 0x534], 1
stosb byte es:[edi], al
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x457bd3
mov edi, dword [esp + 0x14]
mov ecx, eax
sub ecx, dword [edi - 4]
mov eax, dword [edi - 8]
sub eax, 0x4c8
or eax, ecx
jge 0x4577ff
push 0x4c8
lea ecx, [esp + 0x18]
call fcn.004553b0
mov edi, dword [esp + 0x14]
mov edx, edi
xor eax, eax
mov ecx, 0x132
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
lea edi, [esp + 0x30]
push edi
push edx
push esi
lea edx, [esp + 0x54]
push edx
push 1
call dword [eax + 0xc]
test eax, eax
je 0x457bd3
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x457835
xor eax, eax
jmp 0x45784b
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
test eax, eax
jl 0x457bc9
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x457bc9
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
mov word [ecx + eax*2], 0
push edx
lea ecx, [esp + 0x14]
call fcn.004560a0
mov eax, dword [0x48eb20]
mov ecx, 0x48eb20
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edx, dword [0x48eb20]
mov ecx, 0x48eb20
mov byte [esp + 0x524], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x48eb20]
mov ecx, 0x48eb20
mov byte [esp + 0x524], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
test eax, eax
mov ebx, 4
mov byte [esp + 0x524], bl
jge 0x4578d8
or esi, 0xffffffff
jmp 0x4578f6
push 0x46e898
push edi
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x4578f0
or esi, 0xffffffff
jmp 0x4578f6
sub eax, edi
sar eax, 1
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x457ade
jmp 0x457910
mov eax, dword [esp + 0x2c]
jmp 0x457910
test eax, eax
jne 0x457972
push esi
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00456040
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x528], 5
call fcn.004560a0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x524], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45795a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCR71.dll__wtoi64]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x457a8e
cmp eax, 1
jne 0x4579d2
push esi
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.00456040
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x528], 6
call fcn.004560a0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x524], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4579bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.MSVCR71.dll__wtol]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
jmp 0x457a8e
cmp eax, 2
jne 0x457a1e
push esi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call fcn.00456040
mov ecx, dword [ebp + 0x14]
push eax
mov byte [esp + 0x528], 7
call fcn.004560a0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x524], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457a91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x457a91
cmp eax, 3
jne 0x457a49
push esi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.00456040
mov ecx, dword [ebp + 0x18]
push eax
mov byte [esp + 0x528], 8
call fcn.004560a0
mov eax, dword [esp + 0x38]
jmp 0x4579fb
cmp eax, ebx
jne 0x457a91
push esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.00456040
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x528], 9
call fcn.004560a0
lea ecx, [esp + 0x40]
mov byte [esp + 0x524], bl
call fcn.004552a0
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.MSVCR71.dll__wtol]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
add esp, 4
inc esi
push esi
push 0
lea ecx, [esp + 0x18]
call fcn.00455d00
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
test eax, eax
jge 0x457aae
or esi, 0xffffffff
jmp 0x457acc
push 0x46e898
push edi
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x457ac6
or esi, 0xffffffff
jmp 0x457acc
sub eax, edi
sar eax, 1
mov esi, eax
mov ecx, dword [esp + 0x2c]
inc ecx
cmp esi, 0xffffffff
mov dword [esp + 0x2c], ecx
jne 0x457907
push edi
call dword [sym.imp.MSVCR71.dll__wtoi64]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
lea eax, [esp + 0x28]
push eax
mov dword [ecx + 4], edx
call fcn.0045b570
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.MSVCR71.dll_fclose]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x524], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x457b2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x524], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457b51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x524], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457b77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x524], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457b99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x524], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457bc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x457c38
push 0x80070057
call fcn.00403110
lea eax, [esp + 0x24]
push eax
call fcn.0045b570
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCR71.dll_fclose]
lea eax, [ebx - 0x10]
add esp, 8
mov byte [esp + 0x524], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x457c0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x524], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457c36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x51c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x514]
call fcn.00436153
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret