Function at 0x4e8f3a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x67ccf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e9641
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x4e8fa2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e9641
cmp dword [ebp - 0x130], 0x6111101
jne 0x4e8f96
push 0
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x134]
push eax
push esi
call ebx
test eax, eax
je 0x4e8f96
mov ecx, 0x6b93e8
call fcn.004e8ee0
movzx eax, al
cmp dword [ebp - 0x134], eax
jne 0x4e8f96
push 0
lea eax, [ebp - 0x12c]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x124]
push eax
push esi
call ebx
push esi
test eax, eax
je 0x4e8f97
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x6a0b58
push 0x77d
mov ecx, ebx
call fcn.0044c748
push dword [ebp - 0x20]
mov esi, eax
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0042ea46
push eax
mov ecx, edi
call fcn.004e8eee
test eax, eax
je 0x4e9038
push dword [ebp - 0x20]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x24]
call dword [eax + 0x24]
push 0x84d
mov ecx, ebx
call fcn.0044c748
xor ebx, ebx
mov esi, eax
inc ebx
cmp dword [edi + 0x1c], 0
je 0x4e9085
mov ecx, esi
call fcn.00421eaa
mov edx, dword [ebp - 0xc]
xor ecx, ecx
cmp eax, edx
setne cl
test bl, cl
je 0x4e9085
and edx, ebx
mov ecx, esi
push edx
call fcn.0051ed60
mov eax, dword [ebp - 0xc]
mov ecx, 0x691150
and eax, ebx
push eax
call fcn.00421c31
mov ecx, eax
call fcn.004143a0
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x14]
call fcn.0042ea46
push eax
mov ecx, edi
call fcn.004e8eee
test eax, eax
je 0x4e90ab
push dword [ebp - 0x10]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x14]
call dword [eax + 0x24]
push 0x1db
mov ecx, 0x6a0b58
call fcn.0044c748
cmp dword [edi + 0x1c], 0
mov esi, eax
je 0x4e90e4
mov ecx, esi
call fcn.0041bb9b
mov edx, dword [ebp - 0x11c]
xor ecx, ecx
cmp eax, edx
setne cl
test bl, cl
je 0x4e90e4
mov eax, dword [esi]
and edx, ebx
push edx
mov ecx, esi
call dword [eax + 8]
push dword [ebp - 0x120]
mov ecx, esi
push dword [ebp - 0x124]
call fcn.0042ea46
push eax
mov ecx, edi
call fcn.004e8eee
test eax, eax
je 0x4e9116
push dword [ebp - 0x120]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x124]
call dword [eax + 0x24]
push 0xed
mov ecx, 0x6a0b58
call fcn.0044c748
cmp dword [edi + 0x1c], 0
mov esi, eax
je 0x4e914f
mov ecx, esi
call fcn.0041bb9b
mov edx, dword [ebp - 0xdc]
xor ecx, ecx
cmp eax, edx
setne cl
test bl, cl
je 0x4e9155
mov eax, dword [esi]
and edx, ebx
push edx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [ebp - 0xdc]
and edx, 2
mov ecx, esi
push edx
call fcn.00451798
push 0x124
mov ecx, 0x6a0b58
call fcn.0044c748
cmp dword [edi + 0x1c], 0
mov esi, eax
je 0x4e9226
mov ecx, esi
call fcn.0041bb9b
mov edx, dword [ebp - 0xcc]
xor ecx, ecx
cmp eax, edx
setne cl
test bl, cl
je 0x4e91a3
mov eax, dword [esi]
and edx, ebx
push edx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [ebp - 0xcc]
test dl, 4
je 0x4e91ab
push ebx
jmp 0x4e91bb
test dl, 8
je 0x4e91b4
push 2
jmp 0x4e91bb
test dl, 0x10
je 0x4e91c2
push 4
mov ecx, esi
call fcn.004c7ef4
mov eax, dword [ebp - 0xc8]
mov ecx, esi
mov dword [ebp - 0x128], eax
call fcn.004c76d6
movzx ebx, al
mov eax, dword [ebp - 0x128]
cmp eax, ebx
je 0x4e920e
mov ecx, esi
push 0x40
push 0
cmp eax, ebx
jle 0x4e91f9
push 0x132
call fcn.004c7cc8
inc ebx
jmp 0x4e9204
push 0x133
call fcn.004c7cc8
dec ebx
mov eax, dword [ebp - 0x128]
cmp ebx, eax
jne 0x4e91e2
test dword [ebp - 0xcc], 0x100
je 0x4e9223
push 0
mov ecx, esi
call fcn.004c7f39
xor ebx, ebx
inc ebx
mov esi, 0x6a0b58
push 0x5d0
mov ecx, esi
call fcn.0044c748
test eax, eax
je 0x4e9255
cmp dword [edi + 0x1c], 0
je 0x4e9255
mov ecx, dword [ebp - 0xcc]
mov edx, dword [eax]
and ecx, 0x100
push ecx
mov ecx, eax
call dword [edx + 8]
push 0xf3
mov ecx, esi
call fcn.0044c748
push dword [ebp - 0xc0]
mov esi, eax
push dword [ebp - 0xc4]
mov ecx, esi
call fcn.0042ea46
push eax
mov ecx, edi
call fcn.004e8eee
test eax, eax
je 0x4e9295
push dword [ebp - 0xc0]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0xc4]
call dword [eax + 0x24]
cmp dword [edi + 0x1c], 0
je 0x4e92e2
mov ecx, esi
call fcn.0041bb9b
mov edx, dword [ebp - 0xbc]
xor ecx, ecx
cmp eax, edx
setne cl
test bl, cl
je 0x4e92c3
mov eax, dword [esi]
and edx, ebx
push edx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [ebp - 0xbc]
test dl, 4
je 0x4e92cb
push ebx
jmp 0x4e92db
test dl, 8
je 0x4e92d4
push 2
jmp 0x4e92db
test dl, 0x10
je 0x4e92e2
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x61
mov ecx, 0x6a0b58
call fcn.0044c748
cmp dword [edi + 0x1c], 0
mov esi, eax
je 0x4e9318
mov ecx, esi
call fcn.0041bb9b
mov edx, dword [ebp - 0xac]
xor ecx, ecx
cmp eax, edx
setne cl
test bl, cl
je 0x4e9318
mov eax, dword [esi]
and edx, ebx
push edx
mov ecx, esi
call dword [eax + 8]
push dword [ebp - 0xb0]
mov ecx, esi
push dword [ebp - 0xb4]
call fcn.0042ea46
push eax
mov ecx, edi
call fcn.004e8eee
test eax, eax
je 0x4e934a
push dword [ebp - 0xb0]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0xb4]
call dword [eax + 0x24]
push 0xc7
mov ecx, 0x6a0b58
call fcn.0044c748
push dword [ebp - 0xa0]
mov esi, eax
push dword [ebp - 0xa4]
mov ecx, esi
call fcn.0042ea46
push eax
mov ecx, edi
call fcn.004e8eee
test eax, eax
je 0x4e938d
push dword [ebp - 0xa0]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0xa4]
call dword [eax + 0x24]
cmp dword [edi + 0x1c], 0
je 0x4e9429
push dword [ebp - 0x98]
mov ecx, esi
call fcn.004f7633
mov ecx, eax
call fcn.0053c7a1
mov ecx, esi
call fcn.0041bb9b
mov edx, dword [ebp - 0x9c]
xor ecx, ecx
cmp eax, edx
setne cl
test bl, cl
je 0x4e93d3
mov eax, dword [esi]
and edx, ebx
push edx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [ebp - 0x9c]
test dl, 4
je 0x4e9429
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x68]
test byte [ebp - 0x9c], 0x20
je 0x4e93f6
mov ecx, 0x691150
call fcn.0045363e
push ebx
jmp 0x4e9422
test byte [ebp - 0x9c], 0x40
je 0x4e940d
mov ecx, 0x691150
call fcn.0045363e
push 2
jmp 0x4e9422
test byte [ebp - 0x9c], 0x80
je 0x4e9429
mov ecx, 0x691150
call fcn.0045363e
push 3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x68]
push 0x350
mov ecx, 0x6a0b58
call fcn.0044c748
push dword [ebp - 0x90]
mov esi, eax
push dword [ebp - 0x94]
mov ecx, esi
call fcn.0042ea46
push eax
mov ecx, edi
call fcn.004e8eee
test eax, eax
je 0x4e946c
push dword [ebp - 0x90]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x94]
call dword [eax + 0x24]
cmp dword [edi + 0x1c], 0
je 0x4e94b9
mov ecx, esi
call fcn.0041bb9b
mov edx, dword [ebp - 0x8c]
xor ecx, ecx
cmp eax, edx
setne cl
test bl, cl
je 0x4e949a
mov eax, dword [esi]
and edx, ebx
push edx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [ebp - 0x8c]
test dl, 4
je 0x4e94a2
push ebx
jmp 0x4e94b2
test dl, 8
je 0x4e94ab
push 2
jmp 0x4e94b2
test dl, 0x10
je 0x4e94b9
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x510
mov ecx, 0x6a0b58
call fcn.0044c748
push dword [ebp - 0x80]
mov esi, eax
push dword [ebp - 0x84]
mov ecx, esi
call fcn.0042ea46
push eax
mov ecx, edi
call fcn.004e8eee
test eax, eax
je 0x4e94f6
push dword [ebp - 0x80]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x84]
call dword [eax + 0x24]
cmp dword [edi + 0x1c], 0
je 0x4e951b
mov ecx, esi
call fcn.0041bb9b
mov edx, dword [ebp - 0x7c]
xor ecx, ecx
cmp eax, edx
setne cl
test bl, cl
je 0x4e951b
mov eax, dword [esi]
and edx, ebx
push edx
mov ecx, esi
call dword [eax + 8]
push 0x4a8
mov ecx, 0x6a0b58
call fcn.0044c748
mov esi, eax
test esi, esi
je 0x4e957b
push dword [ebp - 0x70]
mov ecx, esi
push dword [ebp - 0x74]
call fcn.0042ea46
push eax
mov ecx, edi
call fcn.004e8eee
test eax, eax
je 0x4e9556
push dword [ebp - 0x70]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x74]
call dword [eax + 0x24]
cmp dword [edi + 0x1c], 0
je 0x4e957b
mov ecx, esi
call fcn.0041bb9b
mov edx, dword [ebp - 0x6c]
xor ecx, ecx
cmp eax, edx
setne cl
test bl, cl
je 0x4e957b
mov eax, dword [esi]
and edx, ebx
push edx
mov ecx, esi
call dword [eax + 8]
push 0x214
mov ecx, 0x6a0b58
call fcn.0044c748
mov ecx, 0x691150
mov ebx, eax
call fcn.00421eee
mov esi, eax
test esi, esi
je 0x4e95ed
push dword [ebp - 0x60]
mov ecx, ebx
push dword [ebp - 0x64]
call fcn.0042ea46
push eax
mov ecx, edi
call fcn.004e8eee
test eax, eax
je 0x4e95c2
push dword [ebp - 0x60]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x64]
call dword [eax + 0x24]
cmp dword [edi + 0x1c], 0
je 0x4e95ed
xor ebx, ebx
mov ecx, esi
inc ebx
test byte [ebp - 0x5c], bl
je 0x4e95d6
push 0
jmp 0x4e95d7
push ebx
call fcn.0047322d
mov ecx, esi
test byte [ebp - 0x58], bl
je 0x4e95e7
push 0
jmp 0x4e95e8
push ebx
call fcn.0047321b
mov ebx, dword [ebp - 0x48]
mov ecx, 0x6a0b58
test ebx, ebx
jne 0x4e9600
push 0x68e
jmp 0x4e9605
push 0x6a1
call fcn.0044c748
mov esi, eax
test esi, esi
je 0x4e9641
push dword [ebp - 0x50]
mov ecx, esi
push dword [ebp - 0x54]
call fcn.0042ea46
push eax
mov ecx, edi
call fcn.004e8eee
test eax, eax
je 0x4e9636
push dword [ebp - 0x50]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x54]
call dword [eax + 0x24]
push ebx
mov ecx, 0x6b6b00
call fcn.004e0464
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005500ac
mov esp, ebp
pop ebp
ret 4