Function at 0x40c6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42535c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2924
call fcn.00419fc0
mov eax, dword [0x42f180]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
mov dword [esp + 0x2934], eax
push 0x105
lea eax, [esp + 0x2c]
push eax
push esi
mov ebx, ecx
call fcn.0041b05a
add esp, 4
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
mov byte [esp + eax + 0x24], 0
push 0x80
mov byte [esp + 0x130], 0
xor eax, eax
mov ecx, 0x9ff
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
push 3
push 0
push 7
stosw word es:[edi], ax
push 0x80000000
lea ecx, [esp + 0x38]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40c8c6
cmp esi, 0xffffffff
je 0x40c8c6
push 0
lea edx, [esp + 0x20]
push edx
push 0x2800
lea eax, [esp + 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c8c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x128]
push ecx
lea ecx, [esp + 0x10]
call fcn.0040b1a0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
test eax, eax
mov dword [esp + 0x293c], 0
jge 0x40c7a3
or eax, 0xffffffff
jmp 0x40c7c0
push str._instance_
push ecx
call fcn.0041ad9d
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
jne 0x40c7be
or eax, 0xffffffff
jmp 0x40c7c0
sub eax, ecx
lea esi, [eax + 0xa]
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x40c7cf
or eax, 0xffffffff
jmp 0x40c7ea
push str.__instance_
push ecx
call fcn.0041ad9d
add esp, 8
test eax, eax
jne 0x40c7e6
or eax, 0xffffffff
jmp 0x40c7ea
sub eax, dword [esp + 0xc]
sub eax, esi
push eax
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.00408aa0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2940], 1
call fcn.0040bdf0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x293c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c836
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
push ecx
push eax
call fcn.0041ae81
add esp, 8
test eax, eax
je 0x40c877
mov edx, dword [ebp + 8]
push edx
lea ecx, [esp + 0x18]
call fcn.004070a0
mov eax, dword [eax]
mov ecx, dword [ebx]
push eax
push ebx
mov byte [esp + 0x2944], 4
call dword [ecx + 0xf4]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x293c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c89d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x293c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x2934]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x292c]
call fcn.00419d15
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4