Function at 0x4def90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4478
call fcn.0041bb60
mov eax, dword [0x58605c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x4478], ecx
mov eax, dword [ebp - 0x4478]
mov ecx, dword [ebp - 0x4478]
mov edx, dword [eax + 0x14]
imul edx, dword [ecx + 0x18]
mov dword [ebp - 0x4458], edx
mov eax, dword [ebp - 0x4458]
push eax
mov ecx, dword [ebp - 0x4478]
call fcn.004dd130
mov ecx, dword [ebp - 0x4478]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 0x4478]
cmp dword [edx + 0x40], 0
jne 0x4deff4
xor eax, eax
jmp 0x4df376
mov eax, dword [ebp + 8]
push eax
push 1
push 0xe
lea ecx, [ebp - 0x4028]
push ecx
call fcn.0041dbff
add esp, 0x10
mov edx, dword [ebp - 0x4478]
mov eax, dword [edx + 0x70]
sub eax, 0xe
mov ecx, dword [ebp - 0x4478]
mov dword [ecx + 0x70], eax
mov edx, dword [ebp + 8]
push edx
push 1
push 0x28
lea eax, [ebp - 0x4454]
push eax
call fcn.0041dbff
add esp, 0x10
mov ecx, dword [ebp - 0x4478]
mov edx, dword [ecx + 0x70]
sub edx, 0x28
mov eax, dword [ebp - 0x4478]
mov dword [eax + 0x70], edx
mov ecx, dword [ebp - 0x4434]
mov dword [ebp - 0x200c], ecx
cmp dword [ebp - 0x200c], 0
jne 0x4df06b
mov dword [ebp - 0x200c], pe_nt_image_headers32
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x200c]
push eax
push 4
lea ecx, [ebp - 0x4428]
push ecx
call fcn.0041dbff
add esp, 0x10
mov edx, dword [ebp - 0x200c]
shl edx, 2
mov eax, dword [ebp - 0x4478]
mov ecx, dword [eax + 0x70]
sub ecx, edx
mov edx, dword [ebp - 0x4478]
mov dword [edx + 0x70], ecx
mov dword [ebp - 0x442c], 0
mov eax, dword [ebp - 0x4478]
cmp dword [eax + 0x6c], 0
jne 0x4df0dc
mov ecx, dword [ebp + 8]
push ecx
push 0x300000
push 1
mov edx, dword [0x5acf9c]
push edx
call fcn.0041dbff
add esp, 0x10
mov dword [ebp - 0x442c], eax
jmp 0x4df100
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4478]
mov edx, dword [ecx + 0x70]
push edx
push 1
mov eax, dword [0x5acf9c]
push eax
call fcn.0041dbff
add esp, 0x10
mov dword [ebp - 0x442c], eax
mov dword [ebp - 0x4018], 0
mov dword [ebp - 0x4014], 0
jmp 0x4df125
mov ecx, dword [ebp - 0x4014]
add ecx, 1
mov dword [ebp - 0x4014], ecx
mov edx, dword [ebp - 0x4478]
mov eax, dword [ebp - 0x4014]
cmp eax, dword [edx + 0x14]
jge 0x4df146
mov ecx, dword [ebp - 0x4014]
mov byte [ebp + ecx - 0x2008], 0
jmp 0x4df116
mov dword [ebp - 0x445c], 0
jmp 0x4df161
mov edx, dword [ebp - 0x445c]
add edx, 1
mov dword [ebp - 0x445c], edx
mov eax, dword [ebp - 0x4478]
mov ecx, dword [ebp - 0x445c]
cmp ecx, dword [eax + 0x18]
jge 0x4df358
mov dword [ebp - 0x4460], 0
mov edx, dword [ebp - 0x4478]
mov eax, dword [ebp - 0x4460]
cmp eax, dword [edx + 0x14]
jge 0x4df25d
mov ecx, dword [0x5acf9c]
add ecx, dword [ebp - 0x4018]
mov dl, byte [ecx]
mov byte [ebp - 0x4461], dl
mov eax, dword [ebp - 0x4018]
add eax, 1
mov dword [ebp - 0x4018], eax
movsx ecx, byte [ebp - 0x4461]
test ecx, ecx
je 0x4df1e7
mov edx, dword [ebp - 0x4460]
mov al, byte [ebp - 0x4461]
mov byte [ebp + edx - 0x4010], al
mov ecx, dword [ebp - 0x4460]
add ecx, 1
mov dword [ebp - 0x4460], ecx
jmp 0x4df258
mov edx, dword [0x5acf9c]
add edx, dword [ebp - 0x4018]
movsx eax, byte [edx]
and eax, 0xff
mov dword [ebp - 0x4468], eax
mov ecx, dword [ebp - 0x4018]
add ecx, 1
mov dword [ebp - 0x4018], ecx
mov dword [ebp - 0x446c], 0
jmp 0x4df22b
mov edx, dword [ebp - 0x446c]
add edx, 1
mov dword [ebp - 0x446c], edx
mov eax, dword [ebp - 0x446c]
cmp eax, dword [ebp - 0x4468]
jge 0x4df258
mov ecx, dword [ebp - 0x4460]
mov byte [ebp + ecx - 0x4010], 0
mov edx, dword [ebp - 0x4460]
add edx, 1
mov dword [ebp - 0x4460], edx
jmp 0x4df21c
jmp 0x4df180
mov dword [ebp - 0x4014], 0
jmp 0x4df278
mov eax, dword [ebp - 0x4014]
add eax, 1
mov dword [ebp - 0x4014], eax
mov ecx, dword [ebp - 0x4478]
mov edx, dword [ebp - 0x4014]
cmp edx, dword [ecx + 0x14]
jge 0x4df2d0
mov eax, dword [ebp - 0x4014]
movsx ecx, byte [ebp + eax - 0x2008]
mov edx, dword [ebp - 0x4014]
movsx eax, byte [ebp + edx - 0x4010]
xor eax, ecx
mov ecx, dword [ebp - 0x4014]
mov byte [ebp + ecx - 0x4010], al
mov edx, dword [ebp - 0x4014]
mov eax, dword [ebp - 0x4014]
mov cl, byte [ebp + eax - 0x4010]
mov byte [ebp + edx - 0x2008], cl
jmp 0x4df269
mov dword [ebp - 0x4014], 0
jmp 0x4df2eb
mov edx, dword [ebp - 0x4014]
add edx, 1
mov dword [ebp - 0x4014], edx
mov eax, dword [ebp - 0x4478]
mov ecx, dword [ebp - 0x4014]
cmp ecx, dword [eax + 0x14]
jge 0x4df353
mov edx, dword [ebp - 0x4014]
movsx eax, byte [ebp + edx - 0x4010]
and eax, 0xff
mov dword [ebp - 0x4474], eax
mov ecx, dword [ebp - 0x4474]
movzx edx, byte [ebp + ecx*4 - 0x4426]
mov dword [ebp - 0x4470], edx
mov eax, dword [ebp - 0x4478]
mov ecx, dword [eax + 0x28]
add ecx, dword [ebp - 0x4014]
mov edx, dword [ebp - 0x4478]
mov eax, dword [ebp - 0x445c]
imul eax, dword [edx + 0x14]
mov dl, byte [ebp - 0x4470]
mov byte [ecx + eax], dl
jmp 0x4df2dc
jmp 0x4df152
mov eax, dword [ebp + 8]
push eax
call fcn.004133fa
add esp, 4
push 1
mov ecx, dword [ebp - 0x4478]
call fcn.004dbce0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413201
mov esp, ebp
pop ebp
ret 4