Function at 0x41c990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43217e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x510
mov eax, dword [0x443350]
push ebx
push esi
push edi
mov dword [esp + 0x514], eax
mov eax, dword [ebp + 8]
push 0x436758
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 0x41cee6
call fcn.00427560
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 0x433b58
lea ecx, [esp + 0x18]
call fcn.0041c5e0
mov eax, dword [0x488ef8]
mov ecx, 0x488ef8
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 0x41ce83
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 0x41caaf
push 0x4c8
lea ecx, [esp + 0x18]
call fcn.00419fd0
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 0x41ce83
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x41cae5
xor eax, eax
jmp 0x41cafb
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
test eax, eax
jl 0x41ce79
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x41ce79
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.0041b010
mov eax, dword [0x488ef8]
mov ecx, 0x488ef8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edx, dword [0x488ef8]
mov ecx, 0x488ef8
mov byte [esp + 0x524], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x488ef8]
mov ecx, 0x488ef8
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 0x41cb88
or esi, 0xffffffff
jmp 0x41cba6
push 0x436790
push edi
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x41cba0
or esi, 0xffffffff
jmp 0x41cba6
sub eax, edi
sar eax, 1
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x41cd8e
jmp 0x41cbc0
mov eax, dword [esp + 0x2c]
jmp 0x41cbc0
test eax, eax
jne 0x41cc22
push esi
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041afb0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x528], 5
call fcn.0041b010
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 0x41cc0a
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 0x41cd3e
cmp eax, 1
jne 0x41cc82
push esi
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041afb0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x528], 6
call fcn.0041b010
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 0x41cc6d
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 0x41cd3e
cmp eax, 2
jne 0x41ccce
push esi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call fcn.0041afb0
mov ecx, dword [ebp + 0x14]
push eax
mov byte [esp + 0x528], 7
call fcn.0041b010
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 0x41cd41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x41cd41
cmp eax, 3
jne 0x41ccf9
push esi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.0041afb0
mov ecx, dword [ebp + 0x18]
push eax
mov byte [esp + 0x528], 8
call fcn.0041b010
mov eax, dword [esp + 0x38]
jmp 0x41ccab
cmp eax, ebx
jne 0x41cd41
push esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.0041afb0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x528], 9
call fcn.0041b010
lea ecx, [esp + 0x40]
mov byte [esp + 0x524], bl
call fcn.0041fe50
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.0041a800
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
test eax, eax
jge 0x41cd5e
or esi, 0xffffffff
jmp 0x41cd7c
push 0x436790
push edi
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x41cd76
or esi, 0xffffffff
jmp 0x41cd7c
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 0x41cbb7
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.00426ed0
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 0x41cddb
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 0x41ce01
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 0x41ce27
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 0x41ce49
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 0x41ce72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x41cee8
push 0x80070057
call fcn.00418bd0
lea eax, [esp + 0x24]
push eax
call fcn.00426ed0
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 0x41cebd
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 0x41cee6
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.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret