Function at 0x4ec3a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xf4
mov eax, dword [0x6a1068]
xor eax, esp
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xf8]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov ebx, ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ecb30
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push esi
call edi
test eax, eax
je 0x4ec42e
cmp dword [esp + 0x18], 0x6111101
jne 0x4ec42e
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call edi
test eax, eax
je 0x4ec42e
mov ecx, dword [esp + 0x10]
cmp ecx, dword [0x6db648]
je 0x4ec43a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ecb2f
push 0
lea edx, [esp + 0x10]
push edx
push 0xe0
lea eax, [esp + 0x28]
push eax
push esi
call edi
push esi
test eax, eax
je 0x4ec42f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1dc
mov ecx, 0x6b0860
call fcn.0043f000
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x4ec48e
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp dword [esi + 0xe], eax
setne cl
test cl, 1
je 0x4ec48e
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4ec4b6
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0x53b
mov ecx, 0x6b0860
call fcn.0043f000
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x4ec4e8
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 8]
and eax, 1
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x48]
and eax, 1
mov dword [ebx + 0x1e], eax
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
push edi
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4ec50f
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0x1d4
mov ecx, 0x6b0860
call fcn.0043f000
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4ec547
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
fld dword [esi + 0x1be]
call fcn.00565c50
cmp eax, 0x3d1
jne 0x4ec57e
fld dword [esi + 0x1c2]
call fcn.00565c50
cmp eax, 0xbb
jne 0x4ec57e
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 0xd1
push 0x3d1
mov ecx, esi
call eax
cmp dword [ebx + 0x1a], 0
je 0x4ec5c3
mov eax, dword [esp + 0x58]
xor ecx, ecx
cmp dword [esi + 0xe], eax
setne cl
test cl, 1
je 0x4ec5a6
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x58]
test al, 4
je 0x4ec5ae
push 1
jmp 0x4ec5bc
test al, 8
je 0x4ec5b6
push 2
jmp 0x4ec5bc
test al, 0x10
je 0x4ec5c3
push 3
mov ecx, esi
call fcn.004641e0
push 0xf1
mov ecx, 0x6b0860
call fcn.0043f000
cmp dword [ebx + 0x1a], 0
mov esi, eax
mov eax, dword [esp + 0x68]
je 0x4ec5fc
xor ecx, ecx
cmp dword [esi + 0xe], eax
setne cl
test cl, 1
je 0x4ec5fc
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x68]
and eax, 2
push eax
mov ecx, esi
call fcn.00448900
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
push edi
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4ec62e
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
fld dword [esi + 0x1be]
call fcn.00565c50
cmp eax, 0x1d0
jne 0x4ec661
fld dword [esi + 0x1c2]
call fcn.00565c50
cmp eax, 0x2d6
jne 0x4ec661
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
push 0x1a6
mov ecx, esi
call eax
push 0x131
mov ecx, 0x6b0860
call fcn.0043f000
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4ec699
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1a], 0
je 0x4ec72d
mov eax, dword [esp + 0x78]
xor ecx, ecx
cmp dword [esi + 0xe], eax
setne cl
test cl, 1
je 0x4ec6c5
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x78]
test al, 4
je 0x4ec6cd
push 1
jmp 0x4ec6db
test al, 8
je 0x4ec6d5
push 2
jmp 0x4ec6db
test al, 0x10
je 0x4ec6e2
push 4
mov ecx, esi
call fcn.004c5800
mov ebp, dword [esp + 0x7c]
mov ecx, esi
call fcn.004c5330
movzx edi, al
cmp ebp, edi
je 0x4ec71a
push 0x40
mov ecx, esi
push 0
cmp ebp, edi
jle 0x4ec70b
push 0x13f
call fcn.004c5b50
inc edi
jmp 0x4ec716
push 0x140
call fcn.004c5b50
dec edi
cmp edi, ebp
jne 0x4ec6f4
test dword [esp + 0x78], 0x100
jne 0x4ec72d
push 0
mov ecx, esi
call fcn.004c5390
push 0x68a
mov ecx, 0x6b0860
call fcn.0043f000
test eax, eax
je 0x4ec75a
cmp dword [ebx + 0x1a], 0
je 0x4ec75a
mov ecx, dword [esp + 0x78]
mov edx, dword [eax]
mov edx, dword [edx + 8]
and ecx, 0x100
push ecx
mov ecx, eax
call edx
push 0xf7
mov ecx, 0x6b0860
call fcn.0043f000
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
push edi
mov esi, eax
push ebp
lea eax, [esi + 0x1fa]
push eax
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4ec798
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1a], 0
je 0x4ec7e5
mov eax, dword [esp + 0x88]
xor ecx, ecx
cmp dword [esi + 0xe], eax
setne cl
test cl, 1
je 0x4ec7c6
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x88]
test al, 4
je 0x4ec7ce
push 1
jmp 0x4ec7dc
test al, 8
je 0x4ec7d6
push 2
jmp 0x4ec7dc
test al, 0x10
je 0x4ec7e5
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x60
mov ecx, 0x6b0860
call fcn.0043f000
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x4ec81a
mov eax, dword [esp + 0x98]
xor ecx, ecx
cmp dword [esi + 0xe], eax
setne cl
test cl, 1
je 0x4ec81a
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x90]
push edi
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4ec847
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0xcb
mov ecx, 0x6b0860
call fcn.0043f000
mov edi, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4ec885
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1a], 0
je 0x4ec8ff
mov ecx, dword [esi + 0x21e]
mov edx, dword [esp + 0xac]
mov dword [ecx + 0x2a0], edx
mov eax, dword [esp + 0xa8]
xor ecx, ecx
cmp dword [esi + 0xe], eax
setne cl
test cl, 1
je 0x4ec8c6
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0xa8]
test al, 4
je 0x4ec8ff
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
push 1
mov ecx, esi
call eax
mov al, byte [esp + 0xa8]
test al, 0x20
je 0x4ec8e4
push 1
jmp 0x4ec8f2
test al, 0x40
je 0x4ec8ec
push 2
jmp 0x4ec8f2
test al, al
jns 0x4ec8ff
push 3
mov ecx, dword [0x6a3294]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
call eax
push 0x340
mov ecx, 0x6b0860
call fcn.0043f000
mov edi, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4ec93d
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1a], 0
je 0x4ec98a
mov eax, dword [esp + 0xb8]
xor ecx, ecx
cmp dword [esi + 0xe], eax
setne cl
test cl, 1
je 0x4ec96b
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0xb8]
test al, 4
je 0x4ec973
push 1
jmp 0x4ec981
test al, 8
je 0x4ec97b
push 2
jmp 0x4ec981
test al, 0x10
je 0x4ec98a
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x5ca
mov ecx, 0x6b0860
call fcn.0043f000
mov edi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xc0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4ec9c8
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1a], 0
je 0x4ec9ef
mov eax, dword [esp + 0xc8]
xor ecx, ecx
cmp dword [esi + 0xe], eax
setne cl
test cl, 1
je 0x4ec9ef
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 0x563
mov ecx, 0x6b0860
call fcn.0043f000
mov esi, eax
test esi, esi
je 0x4eca58
mov edi, dword [esp + 0xd4]
mov ebp, dword [esp + 0xd0]
push edi
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4eca31
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1a], 0
je 0x4eca58
mov eax, dword [esp + 0xd8]
xor ecx, ecx
cmp dword [esi + 0xe], eax
setne cl
test cl, 1
je 0x4eca58
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 0x20d
mov ecx, 0x6b0860
call fcn.0043f000
mov edi, dword [esp + 0xe4]
mov ebp, dword [esp + 0xe0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, ebx
call fcn.004ec360
test eax, eax
je 0x4eca96
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1a], 0
je 0x4ecad0
test byte [esp + 0xe8], 1
mov ecx, 0x6a3330
je 0x4ecaaf
push 0
jmp 0x4ecab1
push 1
call fcn.0046be40
test byte [esp + 0xec], 1
mov ecx, 0x6a3330
je 0x4ecac9
push 0
jmp 0x4ecacb
push 1
call fcn.0046be50
mov eax, dword [esp + 0xfc]
mov ebx, eax
mov ecx, 0x6b0860
test eax, eax
jne 0x4ecae9
push 0x747
jmp 0x4ecaee
push 0x75a
call fcn.0043f000
mov esi, eax
test esi, esi
je 0x4ecb2e
mov edi, dword [esp + 0xf4]
mov ebp, dword [esp + 0xf0]
push edi
push ebp
lea ecx, [esi + 0x1fa]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004ec360
test eax, eax
je 0x4ecb28
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
mov dword [0x6bf738], ebx
pop ebp
pop edi
mov ecx, dword [esp + 0xf8]
pop esi
pop ebx
xor ecx, esp
call fcn.00565c32
add esp, 0xf4
ret 4