Function at 0x487842
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 0x487867
xor eax, eax
jmp 0x487d9f
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 0x4878a8
cmp dword [esp + 0x4c], 0
je 0x4878b5
xor eax, eax
jmp 0x487d9c
cmp dword [esp + 0x4c], 0
je 0x4878b5
cmp word [ebp], cx
jg 0x4878a1
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 8]
test ecx, ecx
je 0x4878c5
cmp dword [ebx + 0x28], 0
jne 0x4878a1
cmp dword [eax + 0x2c], 0
jne 0x4878a1
cmp dword [ebx + 0x24], 0
je 0x4878d5
test ecx, ecx
jne 0x4878a1
xor esi, esi
cmp word [edx], si
mov esi, dword [esp + 0x10]
je 0x4878a1
test byte [eax + 6], 1
jne 0x4878a1
test ecx, ecx
je 0x4878fa
xor edx, edx
inc edx
cmp word [ebp], dx
jg 0x4878a1
cmp dword [esp + 0x48], 0
jne 0x4878a1
mov dx, word [ebx + 6]
and dx, word [esp + 0x28]
je 0x48790c
cmp dword [esp + 0x4c], 0
jne 0x4878a1
cmp dword [ebx + 0x18], 0
je 0x487918
cmp dword [eax + 0x18], 0
jne 0x4878a1
cmp dword [esp + 0x48], 0
je 0x487929
cmp dword [eax + 0x18], 0
jne 0x4878a1
test ecx, ecx
je 0x487944
cmp dword [ebx + 0xc], 0
jne 0x4878a1
test ecx, ecx
je 0x487944
test dx, dx
jne 0x4878a1
test byte [edi + ebp + 0x24], 0x20
jne 0x4878a1
lea ecx, [eax + 0x1c]
cmp dword [ecx], 0
mov dword [esp + 0x24], ecx
je 0x4879e7
xor ecx, ecx
cmp dword [eax + 0x18], ecx
jne 0x4878a1
cmp dword [esp + 0x48], ecx
jne 0x4878a1
test dx, dx
jne 0x4878a1
xor edx, edx
inc edx
cmp word [ebp], dx
jne 0x4878a1
test byte [eax + 6], 5
jne 0x4878a1
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4879a5
cmp byte [eax + 4], 0x71
jne 0x4878a1
mov eax, dword [eax + 8]
test eax, eax
je 0x4878a1
cmp word [eax], dx
jne 0x4878a1
mov eax, ecx
test eax, eax
jne 0x48798a
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x4879e7
cmp dword [edx], eax
jle 0x4879e7
mov eax, dword [edx + 0xc]
add eax, 0xe
xor esi, esi
cmp word [eax], si
mov esi, dword [esp + 0x10]
je 0x4878a1
inc ecx
add eax, 0x14
cmp ecx, dword [edx]
jl 0x4879d0
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.004934d6
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 0x487a93
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.004a5d02
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 0x487a66
mov eax, dword [esp + 0x1c]
jmp 0x487a70
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 0x487d99
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x487a23
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.00497c57
mov eax, dword [esp + 0x1c]
push dword [edi + eax + 0xc]
push esi
call fcn.00497c57
mov eax, dword [esp + 0x24]
push dword [edi + eax + 0x10]
push esi
call fcn.00497c57
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 0x487b2e
movzx eax, word [ecx + 0x20]
cmp ax, word [esp + 0x28]
jne 0x487b23
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 0x487b28
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 0x487b59
mov eax, dword [esp + 0x18]
mov al, byte [eax + edx + 0x24]
mov byte [esp + 0x3c], al
jmp 0x487b78
xor eax, eax
push eax
push eax
push eax
push esi
call fcn.004a5f68
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x1c], ecx
mov dword [ebx + 8], ecx
test ecx, ecx
je 0x487d8d
xor eax, eax
inc eax
cmp edi, eax
jle 0x487ba6
mov eax, dword [esp + 0x44]
inc eax
push eax
lea eax, [edi - 1]
push eax
push ecx
push esi
call fcn.004a62ed
mov ecx, eax
add esp, 0x10
mov dword [ebx + 8], ecx
cmp byte [esi + 0x1e], 0
mov dword [esp + 0x1c], ecx
jne 0x487d8d
test edi, edi
jle 0x487c0f
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.0049d69b
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.004bea90
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 0x487bca
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 0x487c69
mov edi, edx
mov edx, dword [eax + 0xc]
cmp dword [edx + edi + 4], 0
jne 0x487c5d
mov edx, dword [edx + edi + 8]
test edx, edx
je 0x487c5d
push edx
push esi
call fcn.00497e48
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 0x487c2f
push dword [ebp]
mov edi, dword [esp + 0x24]
push edi
push dword [ebx]
push esi
call fcn.004b3982
add esp, 0x10
cmp dword [esp + 0x48], 0
je 0x487ca3
push dword [ebp]
push edi
push dword [ebx + 0x10]
push esi
call fcn.004b3982
push dword [ebp]
push edi
push dword [ebx + 0x14]
push esi
call fcn.004b38c7
add esp, 0x20
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x487cb4
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebp + 0x18], eax
jmp 0x487ccc
cmp dword [ebx + 0x18], 0
je 0x487cca
push dword [ebp]
push edi
push dword [ebx + 0x18]
push esi
call fcn.004b3982
add esp, 0x10
xor eax, eax
cmp dword [ebp + 0xc], 0
je 0x487cdf
push eax
push dword [ebp + 0xc]
push esi
call fcn.0049a5b0
add esp, 0xc
cmp dword [esp + 0x4c], 0
mov edi, eax
je 0x487d30
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.004b38c7
xor edi, edi
mov dword [ebx + 0x14], eax
push edi
push dword [ebp + 0x14]
push esi
call fcn.0049a5b0
push eax
push dword [ebx + 0x14]
push esi
call fcn.004990c4
push edi
mov dword [ebx + 0x14], eax
push dword [ebp + 0x10]
push esi
call fcn.0049ac44
add esp, 0x34
mov dword [ebx + 0x10], eax
jmp 0x487d52
push dword [ebp]
mov eax, dword [esp + 0x24]
push eax
push dword [ebx + 0xc]
push esi
call fcn.004b38c7
push edi
push eax
push esi
mov dword [ebx + 0xc], eax
call fcn.004990c4
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 0x487d71
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebp + 0x28], eax
jmp 0x487d73
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 0x487b2e
push dword [esp + 0x34]
push esi
call fcn.004a5ce4
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x28
ret