Function at 0x4edb40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abb92
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x4edde3
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
jmp 0x4edb8d
xor ebx, ebx
push 0x663188
lea ecx, [ebp - 0x14]
call fcn.00588849
mov eax, dword [esi + 0x408]
cmp eax, 0x3fe
jne 0x4edbe3
lea edx, [esi + 8]
mov ecx, pe_nt_image_headers32
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x2c]
push ebx
push eax
push 0x3ff
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x4edcff
cmp dword [ebp - 0x2c], ebx
jbe 0x4edcff
mov dword [esi + 0x408], ebx
jmp 0x4edbea
inc eax
mov dword [esi + 0x408], eax
mov edx, dword [esi + 0x408]
mov al, byte [esi + edx + 8]
mov byte [ebp - 0x20], al
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00588a5d
push 0x638ff0
lea ecx, [ebp - 0x14]
call fcn.00581105
cmp eax, 0xffffffff
jg 0x4edc68
push 0x639014
lea ecx, [ebp - 0x14]
call fcn.00581105
cmp eax, 0xffffffff
jg 0x4edc68
push 0x639008
lea ecx, [ebp - 0x14]
call fcn.00581105
cmp eax, 0xffffffff
jg 0x4edc68
push 0x638ff8
lea ecx, [ebp - 0x14]
call fcn.00581105
cmp eax, 0xffffffff
jg 0x4edc68
mov edx, dword [ebp - 0x14]
cmp dword [edx - 8], 0x64
jle 0x4edb9a
push 0x5a
push ebx
lea ecx, [ebp - 0x14]
call fcn.00580e19
jmp 0x4edb9a
push eax
push ebx
lea ecx, [ebp - 0x14]
call fcn.00580e19
jmp 0x4edc76
xor ebx, ebx
mov eax, dword [esi + 0x408]
cmp eax, 0x3fe
jne 0x4edcb7
lea edx, [esi + 8]
mov ecx, pe_nt_image_headers32
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x24]
push ebx
push eax
push 0x3ff
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x4edcff
cmp dword [ebp - 0x24], ebx
jbe 0x4edcff
mov dword [esi + 0x408], ebx
jmp 0x4edcbe
inc eax
mov dword [esi + 0x408], eax
mov edx, dword [esi + 0x408]
lea ecx, [ebp - 0x14]
mov bl, byte [esi + edx + 8]
mov byte [ebp - 0x20], bl
mov eax, dword [ebp - 0x20]
push eax
call fcn.00588a5d
push str._r_n__t
lea ecx, [ebp - 0x14]
call fcn.00588b5c
mov edi, eax
cmp edi, 0xffffffff
jg 0x4edd2c
test bl, bl
je 0x4edd47
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], 0x7d0
jle 0x4edc74
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test bl, bl
je 0x4edd47
lea edx, [ebp - 0x28]
push edi
push edx
lea ecx, [ebp - 0x14]
call fcn.0058108d
or dword [ebp - 0x18], 1
mov byte [ebp - 4], 3
jmp 0x4edd4a
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.005887f9
mov al, byte [ebp - 0x18]
mov dword [ebp - 4], 2
test al, 1
je 0x4edd71
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
and al, 0xfe
mov dword [ebp - 0x18], eax
call fcn.005886c0
push 0
mov eax, dword [ebp - 0x1c]
push 0
push 0
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x663188
push eax
call fcn.0045a8c0
test bl, bl
je 0x4edb8b
inc edi
lea ecx, [ebp - 0x14]
push edi
push 0
call fcn.00580e19
jmp 0x4edb8b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4