Function at 0x1004ff10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
lea ecx, [ebx + 0xc]
lea edx, [ebx + 0x18]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], edx
movzx eax, byte [edi + 8]
and eax, 0x3f
cmp eax, 6
je 0x10050143
nop dword [eax]
cmp eax, 0x16
je 0x10050044
cmp eax, 0x26
je 0x10050037
mov eax, dword [ebx + 0x18]
lea ebp, [ebx + 0xc]
sub eax, dword [ebp]
and eax, 0xfffffff0
cmp eax, 0x10
jg 0x1004ffcc
mov eax, dword [ebx + 0x10]
sub edi, dword [ebx + 0x1c]
mov dword [esp + 0x14], edi
cmp dword [eax + 0xc], 0
jle 0x1004ff7c
push ebx
call fcn.100600c0
add esp, 4
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
sub ecx, edx
sar ecx, 4
cmp ecx, 0xf4240
jg 0x10050217
mov eax, dword [ebp]
add ecx, ecx
sub eax, edx
mov edx, 0xf4240
sar eax, 4
inc eax
cmp ecx, 0xf4240
cmovg ecx, edx
cmp ecx, eax
cmovge eax, ecx
cmp eax, edx
jg 0x1005021f
push 1
push eax
push ebx
call fcn.10050540
mov edi, dword [ebx + 0x1c]
add esp, 0xc
add edi, dword [esp + 0x14]
push 0x17
push edi
push ebx
call fcn.10069500
mov edx, eax
add esp, 0xc
mov dword [esp + 0x14], edx
test byte [edx + 8], 0xf
je 0x1005020b
mov ecx, dword [ebp]
cmp ecx, edi
jbe 0x1005000c
nop
mov eax, dword [ecx - 0x10]
mov edx, dword [ecx - 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, byte [ecx - 8]
mov byte [ecx + 8], al
add ecx, 0xfffffff0
cmp ecx, edi
ja 0x1004fff0
mov edx, dword [esp + 0x14]
add dword [ebp], 0x10
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov al, byte [edx + 8]
mov byte [edi + 8], al
movzx eax, al
and eax, 0x3f
cmp eax, 6
jne 0x1004ff40
lea edx, [ebx + 0x18]
jmp 0x10050145
mov eax, dword [edi]
lea ecx, [ebx + 0xc]
add eax, 0xc
lea edx, [ebx + 0x18]
jmp 0x10050054
lea edx, [ebx + 0x18]
mov eax, edi
lea ecx, [ebx + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ecx
mov ebp, dword [eax]
mov eax, dword [edx]
sub eax, dword [ecx]
and eax, 0xfffffff0
cmp eax, 0x140
jg 0x100500d1
mov eax, dword [ebx + 0x10]
sub edi, dword [ebx + 0x1c]
mov esi, edi
cmp dword [eax + 0xc], 0
jle 0x1005007b
push ebx
call fcn.100600c0
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ecx]
sub ecx, edx
sar ecx, 4
cmp ecx, 0xf4240
jg 0x10050217
mov eax, dword [esp + 0x24]
add ecx, ecx
mov eax, dword [eax]
sub eax, edx
mov edx, 0xf4240
sar eax, 4
add eax, 0x14
cmp ecx, 0xf4240
cmovg ecx, edx
cmp ecx, eax
cmovge eax, ecx
cmp eax, edx
jg 0x1005021f
push 1
push eax
push ebx
call fcn.10050540
mov edi, dword [ebx + 0x1c]
add esp, 0xc
add edi, esi
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x100500e6
push ebx
call fcn.10059260
add esp, 4
mov esi, eax
mov edx, dword [esp + 0x24]
mov eax, 2
mov cx, word [esp + 0x28]
mov dword [ebx + 0x14], esi
mov word [esi + 0x20], cx
mov word [esi + 0x22], ax
mov ecx, dword [edx]
add ecx, 0x140
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0x6c]
test al, 1
je 0x1005012b
mov eax, dword [edx]
sub eax, edi
sar eax, 4
dec eax
push eax
push 1
push 0xffffffffffffffff
push 0
push ebx
call fcn.1004faf0
add esp, 0x14
push ebx
call ebp
push eax
push esi
push ebx
call fcn.1004fd30
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ebp, ecx
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov eax, dword [ebp]
sub eax, edi
mov dword [esp + 0x10], esi
sar eax, 4
movzx esi, byte [esi + 6]
dec eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + 8]
mov dword [esp + 0x24], eax
mov eax, dword [edx]
sub eax, dword [ebp]
sar eax, 4
cmp eax, dword [esp + 0x24]
jg 0x100501a8
mov eax, dword [ebx + 0x10]
sub edi, dword [ebx + 0x1c]
mov dword [esp + 0x14], edi
cmp dword [eax + 0xc], 0
jle 0x10050192
push ebx
call fcn.100600c0
add esp, 4
push 1
push dword [esp + 0x28]
push ebx
call fcn.1004fa60
mov edi, dword [ebx + 0x1c]
add esp, 0xc
add edi, dword [esp + 0x14]
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x100501bd
push ebx
call fcn.10059260
add esp, 4
mov edx, eax
mov eax, dword [esp + 0x10]
mov cx, word [esp + 0x28]
mov dword [ebx + 0x14], edx
mov word [edx + 0x20], cx
mov ecx, dword [eax + 0x34]
mov eax, dword [esp + 0x18]
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx], edi
lea ecx, [ecx + 1]
shl ecx, 4
add ecx, edi
mov dword [edx + 4], ecx
mov dword [ebx + 0x14], edx
cmp eax, esi
jge 0x10050201
sub esi, eax
mov eax, dword [ebp]
mov byte [eax + 8], 0
add dword [ebp], 0x10
sub esi, 1
jne 0x100501f1
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0xc
ret
push str.call
push edi
push ebx
call fcn.1005e490
push 5
push ebx
call fcn.10050740
push 1
push 0xf4308
push ebx
call fcn.10050540
add esp, 0xc
push str.stack_overflow
push ebx
call fcn.1005e250
int3