Function at 0x1004f850
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov eax, dword [esi]
mov ebx, dword [eax]
push edi
mov edi, dword [esp + 0x30]
add dword [edi + 0x48], 1
mov eax, dword [edi + 0x48]
mov edx, dword [esi + 4]
mov ebp, dword [edi + 8]
lea ecx, [eax + 1]
mov dword [esp + 0x28], eax
lea eax, [eax + ebx + 2]
mov dword [esp + 0x18], edx
mov edx, edi
mov dword [esp + 0x14], ecx
mov dword [edi + 0x48], eax
call fcn.1001a910
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
push ecx
push edi
xor cl, cl
call fcn.1003ea10
mov edx, dword [esi + 8]
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add esp, 8
cmp dword [eax + 0x54], esi
mov dword [esp + 0x24], edx
jg 0x1004f8be
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x1004f8ed
mov edx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add edx, ebx
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x44
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
add eax, ebx
mov dword [esp + 0x20], eax
add eax, 1
push 1
push eax
call fcn.100350d0
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
add esp, 8
cmp dword [ecx + 0x54], esi
jg 0x1004f921
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x1004f95d
mov eax, dword [ebp + 4]
add dword [ebp + 0x20], 1
mov ecx, dword [esp + 0x18]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
add edx, ecx
mov dword [eax + 4], edx
mov edx, ebx
sub edx, ecx
add edx, 2
mov dword [eax + 8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
xor edx, edx
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
jmp 0x1004f963
mov ecx, dword [esp + 0x18]
xor edx, edx
cmp ecx, edx
jle 0x1004fb49
mov ecx, edi
mov eax, dword [ecx + 0x48]
mov edi, dword [esp + 0x34]
lea esi, [eax + 1]
mov dword [esp + 0x24], esi
mov esi, dword [edi + 4]
add esi, eax
mov dword [ecx + 0x48], esi
sub ebx, dword [edi + 4]
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add ebx, 1
cmp dword [eax + 0x54], esi
jg 0x1004f9ad
push ebp
call fcn.1002cfc0
add esp, 4
test eax, eax
je 0x1004f9ab
mov dword [esp + 0x20], 1
jmp 0x1004f9d9
xor edx, edx
mov eax, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x20]
mov byte [eax], 0x2d
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov dword [esp + 0x20], esi
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push 0x29
mov esi, ebp
call fcn.10030400
mov edi, dword [edi + 0x14]
add esp, 0x10
test edi, edi
jge 0x1004fa00
mov edi, dword [ebp + 0x20]
sub edi, 1
mov edx, dword [ebp]
cmp byte [edx + 0x40], 0
je 0x1004fa14
mov eax, 0x100c82a8
mov dword [esp + 0x1c], eax
jmp 0x1004fa23
mov ecx, dword [ebp + 4]
lea eax, [edi + edi*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x1c], edx
mov eax, edx
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
cmp byte [edx + 0x40], 0
jne 0x1004fc19
mov esi, dword [eax + 0x10]
add ebx, 1
mov dword [eax + 8], ebx
movzx eax, word [esi + 6]
mov ecx, dword [esi + 0x10]
push eax
push 0
push ecx
call fcn.10003bb0
mov ebx, dword [ebp + 4]
mov edi, dword [ebp]
add esp, 0xc
test ebx, ebx
je 0x1004fa82
cmp byte [edi + 0x40], 0
jne 0x1004fa82
mov eax, dword [ebp + 0x20]
sub eax, 1
lea edx, [eax + eax*4]
movsx eax, byte [ebx + edx*4 + 1]
mov ecx, dword [ebx + edx*4 + 0x10]
lea ebx, [ebx + edx*4]
call fcn.10030230
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xfa
jmp 0x1004fa8e
mov ecx, esi
mov eax, 0xfffffffa
call fcn.10030230
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
push 1
push eax
mov eax, dword [edi]
call fcn.1004f7c0
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0x10], eax
mov ebx, dword [ebp + 0x20]
lea eax, [ebx + 1]
push eax
push 0
push eax
push 0x2a
mov esi, ebp
call fcn.10030400
mov eax, ebp
call fcn.100303a0
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x48]
add dword [eax + 0x48], 1
mov edx, dword [edi + 0x10]
mov eax, dword [eax + 0x48]
push edx
push eax
push 0x11
mov dword [edi + 0xc], eax
call fcn.10035eb0
mov eax, dword [edi + 8]
add esp, 0x24
push eax
push 0x74
call fcn.10035f10
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x28]
add esp, 8
cmp eax, ecx
jbe 0x1004fb08
mov edx, dword [ebp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
sub eax, 1
mov dword [ecx + 0x58], eax
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push 0x20
call fcn.10030400
mov eax, dword [ebp + 0x20]
add esp, 0x10
cmp eax, ebx
jbe 0x1004fb3d
mov ecx, dword [ebp + 4]
lea edx, [ebx + ebx*4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
sub edx, 1
mov dword [eax + 0x58], edx
mov edi, dword [esp + 0x34]
mov cl, byte [edi + 0x18]
mov edx, dword [esp + 0x28]
not cl
movzx eax, cl
mov ecx, dword [edi + 8]
push edx
and eax, 1
or eax, 0x6a
push ecx
push eax
mov esi, ebp
call fcn.10035eb0
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 8]
add esp, 0xc
test eax, eax
je 0x1004fc19
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x1004fb8e
add ecx, 1
mov dword [esp + 0x30], ecx
jmp 0x1004fb92
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x30]
push edx
push 0x88
call fcn.10035f10
mov ebx, eax
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
push 0x25
call fcn.10035eb0
add esp, 0x14
push 0x10
call fcn.10035f60
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x20]
add esp, 4
cmp eax, ebx
jbe 0x1004fbd3
mov edx, dword [ebp + 4]
lea ecx, [ebx + ebx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
sub eax, 1
mov dword [ecx + 0x58], eax
mov edx, dword [edi + 8]
push edx
push 0x66
call fcn.10035f10
mov eax, dword [edi + 8]
push eax
push 0x4a
call fcn.10035f10
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ecx
jbe 0x1004fc0d
mov edx, dword [ebp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
sub eax, 1
mov dword [ecx + 0x58], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret