Function at 0x1001e140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002bf2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x510
mov eax, dword [0x1003b270]
push ebx
push esi
push edi
mov dword [esp + 0x514], eax
mov eax, dword [ebp + 8]
push 0x1002d77c
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 0x1001e696
call fcn.10016550
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 0x1002d578
lea ecx, [esp + 0x18]
call fcn.1001dd90
mov eax, dword [0x1003e958]
mov ecx, 0x1003e958
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 0x1001e633
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 0x1001e25f
push 0x4c8
lea ecx, [esp + 0x18]
call fcn.1001b830
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 0x1001e633
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x1001e295
xor eax, eax
jmp 0x1001e2ab
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
test eax, eax
jl 0x1001e629
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x1001e629
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.1001c8b0
mov eax, dword [0x1003e958]
mov ecx, 0x1003e958
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edx, dword [0x1003e958]
mov ecx, 0x1003e958
mov byte [esp + 0x524], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x1003e958]
mov ecx, 0x1003e958
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 0x1001e338
or esi, 0xffffffff
jmp 0x1001e356
push 0x1003486c
push edi
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x1001e350
or esi, 0xffffffff
jmp 0x1001e356
sub eax, edi
sar eax, 1
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x1001e53e
jmp 0x1001e370
mov eax, dword [esp + 0x2c]
jmp 0x1001e370
test eax, eax
jne 0x1001e3d2
push esi
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.1001c830
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x528], 5
call fcn.1001c8b0
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 0x1001e3ba
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 0x1001e4ee
cmp eax, 1
jne 0x1001e432
push esi
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.1001c830
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x528], 6
call fcn.1001c8b0
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 0x1001e41d
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 0x1001e4ee
cmp eax, 2
jne 0x1001e47e
push esi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call fcn.1001c830
mov ecx, dword [ebp + 0x14]
push eax
mov byte [esp + 0x528], 7
call fcn.1001c8b0
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 0x1001e4f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x1001e4f1
cmp eax, 3
jne 0x1001e4a9
push esi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.1001c830
mov ecx, dword [ebp + 0x18]
push eax
mov byte [esp + 0x528], 8
call fcn.1001c8b0
mov eax, dword [esp + 0x38]
jmp 0x1001e45b
cmp eax, ebx
jne 0x1001e4f1
push esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.1001c830
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x528], 9
call fcn.1001c8b0
lea ecx, [esp + 0x40]
mov byte [esp + 0x524], bl
call fcn.1001ba40
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.1001c0a0
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
test eax, eax
jge 0x1001e50e
or esi, 0xffffffff
jmp 0x1001e52c
push 0x1003486c
push edi
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x1001e526
or esi, 0xffffffff
jmp 0x1001e52c
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 0x1001e367
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.10015ec0
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 0x1001e58b
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 0x1001e5b1
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 0x1001e5d7
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 0x1001e5f9
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 0x1001e622
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x1001e698
push 0x80070057
call fcn.1001a440
lea eax, [esp + 0x24]
push eax
call fcn.10015ec0
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 0x1001e66d
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 0x1001e696
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.1001590b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret