Function at 0x100ec70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [ebp + 8]
push eax
push 0x10020fc
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x5c]
push edx
call fcn.0100e7b0
mov dword [ebp - 8], 0
jmp 0x100ecaa
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [0x10131bc]
jge 0x100ef3a
cmp dword [0x1014afc], 0
je 0x100ecd4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x100ef75
mov eax, dword [ebp + 8]
push eax
push 0x10020e0
lea ecx, [ebp - 0xac]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0xac]
push edx
call fcn.0100e7b0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100edd7
mov ecx, dword [ebp + 8]
push ecx
push 0x10020c8
lea edx, [ebp - 0xfc]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xfc]
push eax
call fcn.0100e7b0
cmp dword [ebp - 4], 0
jne 0x100ed53
push 0x10020b0
call fcn.0100e7b0
jmp 0x100eca1
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x100207c
lea ecx, [ebp - 0x178]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea edx, [ebp - 0x178]
push edx
call fcn.0100e7b0
cmp dword [0x101495c], 0
je 0x100edcf
mov dword [0x101495c], 0
push 0x100206c
call fcn.0100d02c
mov eax, dword [ebp - 4]
jmp 0x100ef75
mov eax, dword [ebp + 8]
push eax
push 0x1002054
lea ecx, [ebp - 0x1c8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x1c8]
push edx
call fcn.0100e7b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0x6d
je 0x100ee28
cmp dword [ebp - 0x360], 0xea
je 0x100ee71
jmp 0x100eefc
mov ecx, dword [ebp + 8]
push ecx
push 0x100203c
lea edx, [ebp - 0x290]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
call fcn.0100b7bd
push 0
lea eax, [ebp - 0x290]
push eax
mov ecx, dword [0x10149c4]
push ecx
call sub.GUtils.dll_Trace_Error
mov dword [0x101523c], eax
push 0
call fcn.0100b7bd
or eax, 0xffffffff
jmp 0x100ef75
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x100200c
lea ecx, [ebp - 0x2f8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x2f8]
push edx
call fcn.0100e7b0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x294]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x294]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x294]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x294]
mov ecx, dword [eax]
push ecx
push 0x1001ff4
lea edx, [ebp - 0x2f8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x2f8]
push eax
call fcn.0100e7b0
mov eax, 0xfffffffe
jmp 0x100ef75
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x1001fd8
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x35c]
push ecx
call fcn.0100e780
mov edx, dword [ebp - 8]
imul edx, edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100eca1
push 0x1001fcc
call fcn.0100d02c
mov dword [0x101495c], 1
push 1
call fcn.0100b7bd
push 0
push 0x1001fa4
mov eax, dword [0x10149c4]
push eax
call sub.GUtils.dll_Trace_Error
mov dword [0x101523c], eax
push 0
call fcn.0100b7bd
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc