Function at 0x487e1d
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [eax]
mov ecx, dword [eax + 0x204]
mov dword [esp + 0x20], ecx
mov dword [esp + 4], esi
test byte [esi + 0xc], 1
je 0x487e42
xor eax, eax
jmp 0x48837a
push ebx
mov ebx, dword [esp + 0x38]
xor ecx, ecx
push ebp
push edi
mov edi, dword [esp + 0x44]
inc ecx
mov ebp, dword [ebx + 8]
shl edi, 6
cmp dword [esp + 0x48], 0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edi
mov eax, dword [edi + ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [edi + ebp + 0x18]
mov dword [esp + 0x28], ecx
je 0x487e83
cmp dword [esp + 0x4c], 0
je 0x487e90
xor eax, eax
jmp 0x488377
cmp dword [esp + 0x4c], 0
je 0x487e90
cmp word [ebp], cx
jg 0x487e7c
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 8]
test ecx, ecx
je 0x487ea0
cmp dword [ebx + 0x28], 0
jne 0x487e7c
cmp dword [eax + 0x2c], 0
jne 0x487e7c
cmp dword [ebx + 0x24], 0
je 0x487eb0
test ecx, ecx
jne 0x487e7c
xor esi, esi
cmp word [edx], si
mov esi, dword [esp + 0x10]
je 0x487e7c
test byte [eax + 6], 1
jne 0x487e7c
test ecx, ecx
je 0x487ed5
xor edx, edx
inc edx
cmp word [ebp], dx
jg 0x487e7c
cmp dword [esp + 0x48], 0
jne 0x487e7c
mov dx, word [ebx + 6]
and dx, word [esp + 0x28]
je 0x487ee7
cmp dword [esp + 0x4c], 0
jne 0x487e7c
cmp dword [ebx + 0x18], 0
je 0x487ef3
cmp dword [eax + 0x18], 0
jne 0x487e7c
cmp dword [esp + 0x48], 0
je 0x487f04
cmp dword [eax + 0x18], 0
jne 0x487e7c
test ecx, ecx
je 0x487f1f
cmp dword [ebx + 0xc], 0
jne 0x487e7c
test ecx, ecx
je 0x487f1f
test dx, dx
jne 0x487e7c
test byte [edi + ebp + 0x24], 0x20
jne 0x487e7c
lea ecx, [eax + 0x1c]
cmp dword [ecx], 0
mov dword [esp + 0x24], ecx
je 0x487fc2
xor ecx, ecx
cmp dword [eax + 0x18], ecx
jne 0x487e7c
cmp dword [esp + 0x48], ecx
jne 0x487e7c
test dx, dx
jne 0x487e7c
xor edx, edx
inc edx
cmp word [ebp], dx
jne 0x487e7c
test byte [eax + 6], 5
jne 0x487e7c
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x487f80
cmp byte [eax + 4], 0x71
jne 0x487e7c
mov eax, dword [eax + 8]
test eax, eax
je 0x487e7c
cmp word [eax], dx
jne 0x487e7c
mov eax, ecx
test eax, eax
jne 0x487f65
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x487fc2
cmp dword [edx], eax
jle 0x487fc2
mov eax, dword [edx + 0xc]
add eax, 0xe
xor esi, esi
cmp word [eax], si
mov esi, dword [esp + 0x10]
je 0x487e7c
inc ecx
add eax, 0x14
cmp ecx, dword [edx]
jl 0x487fab
mov ecx, dword [esp + 0x3c]
mov eax, dword [edi + ebp + 0xc]
mov dword [ecx + 0x204], eax
xor eax, eax
push eax
push eax
push eax
push 0x15
push ecx
call fcn.00493ab1
mov eax, dword [esp + 0x50]
add esp, 0x14
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x204], ecx
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
test eax, eax
je 0x48806e
xor edx, edx
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebx + 0x18]
mov esi, dword [ebx + 0x28]
push edx
push ebx
push dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [ebx + 0x18], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x28], edx
call fcn.004a62bb
xor edx, edx
mov dword [ebx + 0x28], esi
add esp, 0xc
mov dword [ebx + 0x18], edi
mov dword [ebx + 8], ebp
mov byte [ebx + 4], 0x71
mov dword [ebx + 0x24], edx
test eax, eax
jne 0x488041
mov eax, dword [esp + 0x1c]
jmp 0x48804b
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], edx
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1c], eax
cmp byte [esi + 0x1e], dl
jne 0x488374
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x487ffe
mov edi, dword [esp + 0x18]
mov eax, dword [edi + ebp + 0x18]
mov ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ebp
push dword [edi + eax + 8]
push esi
call fcn.00498232
mov eax, dword [esp + 0x1c]
push dword [edi + eax + 0xc]
push esi
call fcn.00498232
mov eax, dword [esp + 0x24]
push dword [edi + eax + 0x10]
push esi
call fcn.00498232
mov edx, dword [esp + 0x2c]
xor eax, eax
add esp, 0x18
mov ecx, dword [edi + edx + 0x14]
mov dword [edi + edx + 8], eax
mov dword [edi + edx + 0xc], eax
mov dword [edi + edx + 0x10], eax
mov dword [edi + edx + 0x18], eax
test ecx, ecx
je 0x488109
movzx eax, word [ecx + 0x20]
cmp ax, word [esp + 0x28]
jne 0x4880fe
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x3c]
mov eax, dword [eax + 0x1a8]
test eax, eax
cmovne ebx, eax
mov eax, ebx
mov eax, dword [eax + 0x220]
mov dword [ecx + 0x48], eax
mov eax, ebx
mov ebx, dword [esp + 0x40]
mov dword [eax + 0x220], ecx
jmp 0x488103
dec eax
mov word [ecx + 0x20], ax
xor eax, eax
mov dword [edi + edx + 0x14], eax
mov ecx, dword [ebx + 8]
mov byte [esp + 0x3c], al
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
movsx edi, word [eax]
mov dword [esp + 0x30], edi
test ecx, ecx
je 0x488134
mov eax, dword [esp + 0x18]
mov al, byte [eax + edx + 0x24]
mov byte [esp + 0x3c], al
jmp 0x488153
xor eax, eax
push eax
push eax
push eax
push esi
call fcn.004a6521
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x1c], ecx
mov dword [ebx + 8], ecx
test ecx, ecx
je 0x488368
xor eax, eax
inc eax
cmp edi, eax
jle 0x488181
mov eax, dword [esp + 0x44]
inc eax
push eax
lea eax, [edi - 1]
push eax
push ecx
push esi
call fcn.004a68a6
mov ecx, eax
add esp, 0x10
mov dword [ebx + 8], ecx
cmp byte [esi + 0x1e], 0
mov dword [esp + 0x1c], ecx
jne 0x488368
test edi, edi
jle 0x4881ea
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
add esi, 8
mov ebx, dword [esp + 0x10]
add edi, 8
mov ebp, dword [esp + 0x30]
add edi, ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
push dword [edi + 0x28]
push ebx
call fcn.0049dc76
push 0x10
pop ecx
push 0x40
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
push eax
push esi
call fcn.004bf040
mov edi, dword [esp + 0x3c]
add esi, 0x40
add edi, 0x40
mov dword [esp + 0x38], esi
add esp, 0x14
mov dword [esp + 0x28], edi
dec ebp
jne 0x4881a5
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x3c]
mov byte [eax + ecx + 0x24], dl
xor edx, edx
mov eax, dword [ebx]
mov ecx, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], ecx
cmp dword [eax], edx
jle 0x488244
mov edi, edx
mov edx, dword [eax + 0xc]
cmp dword [edx + edi + 4], 0
jne 0x488238
mov edx, dword [edx + edi + 8]
test edx, edx
je 0x488238
push edx
push esi
call fcn.00498423
pop ecx
pop ecx
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0xc]
mov dword [ecx + edi + 4], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
inc ecx
add edi, 0x14
mov dword [esp + 0x28], ecx
cmp ecx, dword [eax]
jl 0x48820a
push dword [ebp]
mov edi, dword [esp + 0x24]
push edi
push dword [ebx]
push esi
call fcn.004b3f38
add esp, 0x10
cmp dword [esp + 0x48], 0
je 0x48827e
push dword [ebp]
push edi
push dword [ebx + 0x10]
push esi
call fcn.004b3f38
push dword [ebp]
push edi
push dword [ebx + 0x14]
push esi
call fcn.004b3e7d
add esp, 0x20
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x48828f
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebp + 0x18], eax
jmp 0x4882a7
cmp dword [ebx + 0x18], 0
je 0x4882a5
push dword [ebp]
push edi
push dword [ebx + 0x18]
push esi
call fcn.004b3f38
add esp, 0x10
xor eax, eax
cmp dword [ebp + 0xc], 0
je 0x4882ba
push eax
push dword [ebp + 0xc]
push esi
call fcn.0049ab8b
add esp, 0xc
cmp dword [esp + 0x4c], 0
mov edi, eax
je 0x48830b
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], edi
push dword [ebp]
push eax
push dword [ebx + 0x14]
push esi
call fcn.004b3e7d
xor edi, edi
mov dword [ebx + 0x14], eax
push edi
push dword [ebp + 0x14]
push esi
call fcn.0049ab8b
push eax
push dword [ebx + 0x14]
push esi
call fcn.0049969f
push edi
mov dword [ebx + 0x14], eax
push dword [ebp + 0x10]
push esi
call fcn.0049b21f
add esp, 0x34
mov dword [ebx + 0x10], eax
jmp 0x48832d
push dword [ebp]
mov eax, dword [esp + 0x24]
push eax
push dword [ebx + 0xc]
push esi
call fcn.004b3e7d
push edi
push eax
push esi
mov dword [ebx + 0xc], eax
call fcn.0049969f
add esp, 0x1c
mov dword [ebx + 0xc], eax
mov ax, word [ebp + 6]
xor ecx, ecx
inc ecx
and ax, cx
or word [ebx + 6], ax
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x48834c
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebp + 0x28], eax
jmp 0x48834e
xor eax, eax
mov ebx, dword [ebx + 0x1c]
mov ebp, dword [ebp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebp
test ebx, ebx
jne 0x488109
push dword [esp + 0x34]
push esi
call fcn.004a629d
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x28
ret