Function at 0x4e5d90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xf4
mov eax, dword [0x6b3854]
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 0x4e6520
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 0x4e5e1e
cmp dword [esp + 0x18], 0x6111101
jne 0x4e5e1e
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call edi
test eax, eax
je 0x4e5e1e
mov ecx, dword [esp + 0x10]
cmp ecx, dword [0x6efe44]
je 0x4e5e2a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e651f
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 0x4e5e1f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1d2
mov ecx, 0x6c3848
call fcn.00434380
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x4e5e7e
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4e5e7e
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 + 0x200]
push ecx
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e5ea6
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0x4c6
mov ecx, 0x6c3848
call fcn.00434380
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x4e5ed8
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 + 0x20], eax
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e5eff
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0x1ca
mov ecx, 0x6c3848
call fcn.00434380
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e5f37
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
fld dword [esi + 0x1c4]
call fcn.0056dc70
cmp eax, 0x3d1
jne 0x4e5f6e
fld dword [esi + 0x1c8]
call fcn.0056dc70
cmp eax, 0xbb
jne 0x4e5f6e
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 0xd1
push 0x3d1
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4e5fb3
mov eax, dword [esp + 0x58]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4e5f96
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 0x4e5f9e
push 1
jmp 0x4e5fac
test al, 8
je 0x4e5fa6
push 2
jmp 0x4e5fac
test al, 0x10
je 0x4e5fb3
push 3
mov ecx, esi
call fcn.00458e70
push 0xf0
mov ecx, 0x6c3848
call fcn.00434380
cmp dword [ebx + 0x1c], 0
mov esi, eax
mov eax, dword [esp + 0x68]
je 0x4e5fec
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4e5fec
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.0043dec0
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e601e
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
fld dword [esi + 0x1c4]
call fcn.0056dc70
cmp eax, 0x1d0
jne 0x4e6051
fld dword [esi + 0x1c8]
call fcn.0056dc70
cmp eax, 0x2d6
jne 0x4e6051
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
push 0x1a6
mov ecx, esi
call eax
push 0x127
mov ecx, 0x6c3848
call fcn.00434380
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e6089
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4e611d
mov eax, dword [esp + 0x78]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4e60b5
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 0x4e60bd
push 1
jmp 0x4e60cb
test al, 8
je 0x4e60c5
push 2
jmp 0x4e60cb
test al, 0x10
je 0x4e60d2
push 4
mov ecx, esi
call fcn.004bf490
mov ebp, dword [esp + 0x7c]
mov ecx, esi
call fcn.004bf020
movzx edi, al
cmp ebp, edi
je 0x4e610a
push 0x40
mov ecx, esi
push 0
cmp ebp, edi
jle 0x4e60fb
push 0x135
call fcn.004bf7e0
inc edi
jmp 0x4e6106
push 0x136
call fcn.004bf7e0
dec edi
cmp edi, ebp
jne 0x4e60e4
test dword [esp + 0x78], 0x100
jne 0x4e611d
push 0
mov ecx, esi
call fcn.004bf040
push 0x613
mov ecx, 0x6c3848
call fcn.00434380
test eax, eax
je 0x4e614a
cmp dword [ebx + 0x1c], 0
je 0x4e614a
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 0xf6
mov ecx, 0x6c3848
call fcn.00434380
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
push edi
mov esi, eax
push ebp
lea eax, [esi + 0x200]
push eax
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e6188
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4e61d5
mov eax, dword [esp + 0x88]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4e61b6
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 0x4e61be
push 1
jmp 0x4e61cc
test al, 8
je 0x4e61c6
push 2
jmp 0x4e61cc
test al, 0x10
je 0x4e61d5
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x60
mov ecx, 0x6c3848
call fcn.00434380
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x4e620a
mov eax, dword [esp + 0x98]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4e620a
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 + 0x200]
push ecx
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e6237
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0xca
mov ecx, 0x6c3848
call fcn.00434380
mov edi, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e6275
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4e62ef
mov ecx, dword [esi + 0x224]
mov edx, dword [esp + 0xac]
mov dword [ecx + 0x2a8], edx
mov eax, dword [esp + 0xa8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4e62b6
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 0x4e62ef
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 0x4e62d4
push 1
jmp 0x4e62e2
test al, 0x40
je 0x4e62dc
push 2
jmp 0x4e62e2
test al, al
jns 0x4e62ef
push 3
mov ecx, dword [0x6b638c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
call eax
push 0x336
mov ecx, 0x6c3848
call fcn.00434380
mov edi, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e632d
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4e637a
mov eax, dword [esp + 0xb8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4e635b
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 0x4e6363
push 1
jmp 0x4e6371
test al, 8
je 0x4e636b
push 2
jmp 0x4e6371
test al, 0x10
je 0x4e637a
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x553
mov ecx, 0x6c3848
call fcn.00434380
mov edi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xc0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e63b8
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4e63df
mov eax, dword [esp + 0xc8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4e63df
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 0x4ec
mov ecx, 0x6c3848
call fcn.00434380
mov esi, eax
test esi, esi
je 0x4e6448
mov edi, dword [esp + 0xd4]
mov ebp, dword [esp + 0xd0]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e6421
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4e6448
mov eax, dword [esp + 0xd8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4e6448
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 0x203
mov ecx, 0x6c3848
call fcn.00434380
mov edi, dword [esp + 0xe4]
mov ebp, dword [esp + 0xe0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004e5d30
test eax, eax
je 0x4e6486
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4e64c0
test byte [esp + 0xe8], 1
mov ecx, 0x6b6428
je 0x4e649f
push 0
jmp 0x4e64a1
push 1
call fcn.00460e30
test byte [esp + 0xec], 1
mov ecx, 0x6b6428
je 0x4e64b9
push 0
jmp 0x4e64bb
push 1
call fcn.00460e40
mov eax, dword [esp + 0xfc]
mov ebx, eax
mov ecx, 0x6c3848
test eax, eax
jne 0x4e64d9
push 0x6d0
jmp 0x4e64de
push 0x6e3
call fcn.00434380
mov esi, eax
test esi, esi
je 0x4e651e
mov edi, dword [esp + 0xf4]
mov ebp, dword [esp + 0xf0]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004e5d30
test eax, eax
je 0x4e6518
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
mov dword [0x6d0928], ebx
pop ebp
pop edi
mov ecx, dword [esp + 0xf8]
pop esi
pop ebx
xor ecx, esp
call fcn.0056ca39
add esp, 0xf4
ret 4