Function at 0x4b0260
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1fc]
mov eax, dword [eax]
test byte [eax + 0xc], 1
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
jne 0x4b02bc
mov eax, dword [ebp + 0xc]
mov edi, dword [esi + 8]
lea ebx, [eax*8]
sub ebx, eax
add ebx, ebx
add ebx, ebx
add ebx, ebx
cmp dword [ebp + 0x10], 0
mov edx, dword [ebx + edi + 0x20]
mov eax, dword [ebx + edi + 0x18]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
je 0x4b02c5
cmp dword [ebp + 0x14], 0
je 0x4b02d1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x4b02d1
cmp word [edi], 1
jg 0x4b02bc
mov edx, dword [eax + 0x28]
mov ecx, dword [eax + 8]
test edx, edx
je 0x4b02e1
cmp dword [esi + 0x28], 0
jne 0x4b02bc
cmp dword [eax + 0x2c], 0
jne 0x4b02bc
cmp dword [esi + 0x24], 0
je 0x4b02f7
test edx, edx
je 0x4b02f7
cmp dword [eax + 0x18], 0
jne 0x4b02bc
cmp word [ecx], 0
je 0x4b02bc
test byte [eax + 6], 1
jne 0x4b0307
test edx, edx
je 0x4b0313
cmp word [edi], 1
jg 0x4b02bc
cmp dword [ebp + 0x10], 0
jne 0x4b02bc
mov cx, word [esi + 6]
and cx, 1
mov word [esp + 0x12], cx
je 0x4b0328
cmp dword [ebp + 0x14], 0
jne 0x4b02bc
cmp dword [esi + 0x18], 0
je 0x4b0334
cmp dword [eax + 0x18], 0
jne 0x4b02bc
cmp dword [ebp + 0x10], 0
je 0x4b0344
cmp dword [eax + 0x18], 0
jne 0x4b02bc
test edx, edx
je 0x4b0352
cmp dword [esi + 0xc], 0
jne 0x4b02bc
test byte [ebx + edi + 0x1d], 0x20
lea ecx, [ebx + edi + 0x1d]
mov dword [esp + 0x38], ecx
jne 0x4b02bc
cmp dword [eax + 0x1c], 0
je 0x4b03fb
cmp dword [eax + 0x18], 0
jne 0x4b02bc
cmp dword [ebp + 0x10], 0
jne 0x4b02bc
cmp word [esp + 0x12], 0
jne 0x4b02bc
cmp word [edi], 1
jne 0x4b02bc
mov dl, 5
jmp 0x4b03a0
test byte [eax + 6], dl
jne 0x4b02bc
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4b03ba
cmp byte [eax + 4], 0x71
jne 0x4b02bc
mov eax, dword [eax + 8]
test eax, eax
je 0x4b02bc
cmp word [eax], 1
jne 0x4b02bc
mov eax, ecx
test eax, eax
jne 0x4b03a0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4b03fb
cmp dword [eax], ecx
jle 0x4b03fb
mov eax, dword [eax + 0xc]
add eax, 0xe
cmp word [eax], 0
je 0x4b02bc
mov edx, dword [esi + 0x18]
inc ecx
add eax, 0x14
cmp ecx, dword [edx]
jl 0x4b03e6
mov ecx, dword [ebx + edi + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0x15
mov dword [eax + 0x1fc], ecx
call fcn.00497940
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x1fc], edx
mov eax, dword [ecx + 0x1c]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
je 0x4b04c2
jmp 0x4b0440
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x28]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esi + 0x18]
mov dword [esp + 0x30], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [esp + 0x40], edx
mov dword [esi + 0x18], eax
mov dword [esi + 8], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], eax
call fcn.00490130
mov edx, dword [esp + 0x40]
add esp, 0xc
mov dword [esi + 0x28], edx
mov dword [esi + 0x18], ebx
mov dword [esi + 8], edi
mov byte [esi + 4], 0x71
mov dword [esi + 0x24], 0
test eax, eax
jne 0x4b0490
mov eax, dword [esp + 0x30]
jmp 0x4b049e
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], 0
mov edx, dword [esp + 0x14]
mov dword [esi + 0x1c], eax
cmp byte [edx + 0x1e], 0
jne 0x4b0818
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4b0440
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebx + edi + 8]
mov eax, dword [ebx + edi + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], eax
call fcn.0046c360
mov eax, dword [ebx + edi + 0xc]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.0046c360
mov edx, dword [ebx + edi + 0x10]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.0046c360
mov eax, dword [ebx + edi + 0x14]
xor ecx, ecx
mov dword [ebx + edi + 8], ecx
mov dword [ebx + edi + 0xc], ecx
mov dword [ebx + edi + 0x10], ecx
mov dword [ebx + edi + 0x18], ecx
lea edi, [ebx + edi + 0x14]
add esp, 0x18
cmp eax, ecx
je 0x4b055c
movzx ecx, word [eax + 0x20]
cmp ecx, 1
jne 0x4b0551
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1a8]
test ecx, ecx
jne 0x4b0534
mov ecx, edx
mov edx, dword [ecx + 0x218]
mov dword [eax + 0x48], edx
mov ebx, esi
mov dword [ecx + 0x218], eax
mov dword [edi], 0
mov dword [esp + 0x30], ebx
jmp 0x4b0568
dec ecx
mov word [eax + 0x20], cx
mov dword [edi], 0
mov ebx, esi
mov dword [esp + 0x30], ebx
jmp 0x4b0568
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
movsx esi, word [eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 8]
mov byte [esp + 0x12], 0
mov dword [esp + 0x24], eax
test eax, eax
je 0x4b0596
mov ecx, dword [esp + 0x38]
mov dl, byte [ecx]
mov byte [esp + 0x12], dl
jmp 0x4b05b5
push 0
xor ecx, ecx
xor eax, eax
mov edx, edi
call fcn.0049bd10
add esp, 4
mov dword [ebx + 8], eax
mov dword [esp + 0x24], eax
test eax, eax
je 0x4b080a
cmp esi, 1
jle 0x4b05dd
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
push edi
call fcn.0049bbe0
add esp, 0xc
mov dword [ebx + 8], eax
cmp byte [edi + 0x1e], 0
mov dword [esp + 0x24], eax
jne 0x4b080a
test esi, esi
jle 0x4b0640
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
add eax, 8
mov dword [esp + 0x28], eax
lea eax, [ecx + edx + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x20]
mov esi, dword [esp + 0x14]
call fcn.0049baa0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov esi, eax
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov esi, 0x38
push esi
push 0
push eax
call fcn.00530110
add dword [esp + 0x2c], esi
add dword [esp + 0x34], esi
add esp, 0xc
dec dword [esp + 0x34]
jne 0x4b0600
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x12]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov byte [edx + eax + 0x1d], cl
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
cmp dword [ecx], eax
jle 0x4b06c2
mov dword [esp + 0x24], eax
lea esp, [esp]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x24]
cmp dword [eax + edx + 4], 0
jne 0x4b06b0
mov eax, dword [eax + edx + 8]
test eax, eax
je 0x4b06b0
push esi
mov ebx, eax
call fcn.0046c6e0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [edx + ecx + 4], eax
mov ecx, dword [esp + 0x38]
add esp, 4
mov eax, dword [esp + 0x28]
add dword [esp + 0x24], 0x14
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [ecx]
jl 0x4b0670
mov edx, dword [edi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
push edx
push eax
push ecx
push esi
call fcn.004aff80
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x4b0706
mov edx, dword [edi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x10]
push edx
push eax
push ecx
push esi
call fcn.004aff80
mov edx, dword [edi]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x14]
push edx
push eax
push ecx
push esi
call fcn.004afe50
add esp, 0x20
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4b0719
mov dword [ebx + 0x18], eax
mov dword [edi + 0x18], 0
jmp 0x4b0732
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4b0732
mov edx, dword [edi]
mov ecx, dword [esp + 0x1c]
push edx
push ecx
push eax
push esi
call fcn.004aff80
add esp, 0x10
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4b074d
push 0
push 0
push eax
push esi
call fcn.0048f9f0
add esp, 0x10
mov dword [esp + 0x28], eax
jmp 0x4b0755
mov dword [esp + 0x28], 0
cmp dword [ebp + 0x14], 0
mov edx, dword [ebx + 0xc]
je 0x4b07ae
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
mov eax, dword [ebx + 0x14]
push ecx
push edx
push eax
push esi
call fcn.004afe50
push 0
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x14]
push 0
push eax
push esi
call fcn.0048f9f0
mov ecx, dword [ebx + 0x14]
push eax
push ecx
mov eax, esi
call fcn.0048f5b0
mov dword [ebx + 0x14], eax
mov edx, dword [edi + 0x10]
push 0
push edx
push esi
call fcn.0048fc70
add esp, 0x34
mov dword [ebx + 0x10], eax
jmp 0x4b07d3
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
push esi
call fcn.004afe50
mov ecx, dword [esp + 0x38]
push ecx
mov dword [ebx + 0xc], eax
push eax
mov eax, esi
call fcn.0048f5b0
add esp, 0x18
mov dword [ebx + 0xc], eax
mov dx, word [edi + 6]
and dx, 1
or word [ebx + 6], dx
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4b07f0
mov dword [ebx + 0x28], eax
mov dword [edi + 0x28], 0
mov ebx, dword [ebx + 0x1c]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x4b0564
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
push ecx
push edi
call fcn.004ab4f0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret