Function at 0x1004b010
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x40]
xor edx, edx
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov dword [eax], 0
mov eax, dword [esp + 0x40]
push esi
push edi
mov edi, dword [esp + 0x38]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
test eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1c]
setne dl
mov dword [esp + 0x2c], eax
xor ebp, ebp
movsx eax, word [edi + 9]
cmp eax, dword [ebx + 0x24]
mov eax, dword [esp + 0x44]
lea edx, [edx*4 + 4]
mov dword [esp + 0x14], edx
jl 0x1004b26c
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x38], eax
lea ecx, [ebp + 0xc]
lea edx, [ebp + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
lea esp, [esp]
push ecx
push edx
call fcn.10046110
mov esi, dword [eax + 8]
test byte [esi + 8], 2
je 0x1004b0ac
push dword [ebx + 0x20]
mov eax, dword [esi + 4]
push dword [esi + 0xb]
shl eax, 9
push eax
push dword [ebx]
call fcn.100456f0
test eax, eax
jne 0x1004b253
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1004b0d8
push 0
push eax
push dword [ebx]
push dword [esp + 0x34]
call fcn.100499c0
mov dword [esi + 4], eax
test eax, eax
jne 0x1004b0e1
pop edi
pop esi
pop ebp
mov eax, 0xffffffef
pop ebx
add esp, 0x14
ret 0x30
mov eax, dword [ebx + 0x18]
mov dword [esi + 4], eax
inc dword [ebx + 0x18]
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0x14]
jle 0x1004b0ec
mov dword [ebp + 0x14], eax
mov dword [ebx + 0x28], 1
movzx edx, word [edi + 9]
mov ax, dx
movsx ecx, dx
sar ax, 1
movsx ebp, ax
mov eax, dword [esp + 0x38]
sub ecx, ebp
movzx eax, ax
mov dword [esp + 0x44], ecx
cmp eax, ebp
ja 0x1004b11e
mov dword [esp + 0x18], 1
jmp 0x1004b139
test dl, 1
je 0x1004b12d
mov eax, ecx
mov ecx, ebp
mov dword [esp + 0x44], ecx
mov ebp, eax
sub dword [esp + 0x38], ebp
mov dword [esp + 0x18], 2
push dword [esi + 0xb]
push ecx
call fcn.10045460
mov ecx, dword [esp + 0x44]
mov word [esi + 9], cx
push dword [edi + 0xb]
push ebp
call fcn.10045460
cmp dword [esp + 0x10], 0
mov word [edi + 9], bp
je 0x1004b19f
mov eax, dword [edi + 0xb]
mov ecx, dword [esi + 0xb]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0xb]
add eax, 4
push eax
push dword [esi + 4]
call fcn.10045460
mov eax, dword [esi + 0xb]
add eax, 4
push eax
call fcn.10045410
test eax, eax
jne 0x1004b192
mov eax, dword [esi + 4]
mov dword [ebx + 0x1ae], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x10]
add dword [ebx + 0x1aa], eax
mov eax, dword [esp + 0x44]
imul eax, dword [esp + 0x2c]
imul ebp, dword [esp + 0x2c]
push eax
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0xb]
add eax, ebp
add eax, dword [esp + 0x18]
push eax
mov eax, dword [esi + 0xb]
add eax, dword [esp + 0x1c]
push eax
call fcn.10052940
mov eax, dword [edi + 0xb]
add esp, 0xc
mov edx, dword [esp + 0x14]
add eax, ebp
mov ebp, dword [esp + 0x18]
mov dword [eax + edx], 0
mov eax, dword [esi + 0xb]
add eax, dword [esp + 0x44]
mov dword [eax + edx], 0
mov byte [edi + 8], 2
mov byte [esi + 8], 2
cmp ebp, 2
jne 0x1004b21b
movsx eax, word [edi + 9]
mov ecx, dword [esp + 0x48]
dec eax
imul eax, dword [esp + 0x2c]
add eax, dword [edi + 0xb]
add eax, edx
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov edi, esi
mov ecx, dword [esp + 0x4c]
jmp 0x1004b237
movsx eax, word [esi + 9]
mov ecx, dword [esp + 0x50]
dec eax
imul eax, dword [esp + 0x2c]
add eax, dword [esi + 0xb]
add eax, edx
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
movsx eax, word [edi + 9]
cmp eax, dword [ebx + 0x24]
jl 0x1004b268
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x1004b080
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [ecx + 4], 0x2801
pop ebx
add esp, 0x14
ret 0x30
mov eax, dword [esp + 0x38]
movzx edx, ax
mov eax, dword [ebx + 0x19e]
mov ecx, edx
imul ecx, dword [esp + 0x2c]
mov dword [eax + 6], ecx
mov ecx, dword [ebx + 0x19e]
mov eax, dword [edi + 4]
mov dword [ecx], eax
mov eax, dword [ebx + 0x19e]
mov ecx, dword [edi + 0xb]
mov esi, dword [eax + 6]
add esi, 8
add esi, ecx
cmp dword [esp + 0x10], 0
jne 0x1004b2a5
sub esi, 4
movzx eax, word [edi + 9]
test ax, ax
jle 0x1004b2c8
mov ecx, dword [esp + 0x2c]
cwde
sub eax, edx
imul eax, ecx
add eax, 4
push eax
lea eax, [esi + ecx]
push esi
push eax
call fcn.100539e0
jmp 0x1004b2d3
push dword [ebx + 0x20]
push 0
push ecx
call fcn.100531b0
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x10], eax
sete al
push dword [ebx + 0x4e]
push dword [esp + 0x40]
lea eax, [eax*4 + 4]
add eax, esi
push eax
call fcn.10052940
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x1004b30b
lea eax, [esi + 4]
mov dword [esi], 0
push eax
jmp 0x1004b30c
push esi
push dword [esp + 0x44]
call fcn.10045460
inc word [edi + 9]
mov ax, word [edi + 9]
push dword [edi + 0xb]
cwde
push eax
call fcn.10045460
mov eax, dword [edi + 4]
mov byte [edi + 8], 2
mov dword [ebx + 0x2c], eax
movsx eax, word [edi + 9]
dec eax
imul eax, dword [esp + 0x2c]
add eax, dword [edi + 0xb]
add eax, dword [esp + 0x14]
cmp ebp, 2
jne 0x1004b362
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x14
ret 0x30
test ebp, ebp
je 0x1004b375
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [edi + 4]
mov dword [ecx], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0x30