Function at 0x4581a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0x10]
mov al, byte [ebp + 0x20]
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ecx], 1
cmp byte [esi + 0x39], 0
push edi
je 0x4582bd
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
mov dword [ebx + 8], 1
mov edx, dword [esi + 4]
mov dword [ebx], edx
test al, al
je 0x458284
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + edi*4 - 4]
push 0
push 0x4bf8b0
dec edi
push 0x4be2ac
push 0
mov dword [ebp + 0x1c], edi
call fcn.0044df30
push eax
call fcn.00497612
add esp, 0x14
test eax, eax
je 0x45827b
mov ecx, dword [esi + 0x14]
push ecx
lea edx, [ebp + 0x1c]
push edx
lea ecx, [ebp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00469410
test eax, eax
je 0x4583d4
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov edx, dword [esi + 8]
push eax
push ecx
push ebx
push edi
call edx
mov eax, dword [esp + 0x38]
add esp, 0x10
test eax, eax
je 0x45824e
push eax
call fcn.0048a11f
add esp, 4
mov eax, dword [0x4be40c]
cmp dword [eax + 0xfc], 0
je 0x45826d
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edi, dword [edi]
cmp edi, 8
je 0x458262
test edi, edi
jmp 0x45873c
cmp edi, dword [esi + 0x14]
jl 0x4583d4
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
mov eax, dword [esi + 8]
push edi
push ecx
push ebx
push edx
call eax
mov ecx, dword [0x4be40c]
add esp, 0x10
cmp dword [ecx + 0xfc], 0
je 0x45872c
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
or ebx, 0xffffffff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], 0
test al, al
je 0x4583df
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0
dec eax
push 0x4bf8b0
mov dword [ebp + 0x1c], eax
mov eax, dword [ecx + eax*4]
push 0x4be2ac
push 0
call fcn.0044df30
push eax
call fcn.00497612
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
je 0x4583df
mov edx, eax
mov esi, dword [edx + 0x18]
mov ecx, 0xfffffff0
inc ebx
add ecx, 0x10
cmp ebx, esi
jge 0x458353
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov edi, dword [eax + ecx]
mov edx, dword [eax + ecx + 8]
add eax, ecx
mov dword [esp + 0x38], edi
mov edi, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
cmp eax, 4
jne 0x45834e
mov dword [esp + 0x3c], 0
cmp edx, 1
jl 0x458313
mov dword [esp + 0x18], ebx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x28], eax
cmp ecx, eax
jg 0x45836c
mov dword [esp + 0x28], ecx
cmp dword [edx + 0x34], 0
jle 0x4583ec
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
jle 0x4583a5
xor esi, esi
mov ecx, dword [ebp + 0x18]
mov edi, dword [ecx + ebx*4]
cmp dword [edi + 8], 3
jne 0x45839c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
cmp word [eax + esi + 4], 0
jne 0x45839c
mov eax, dword [edi]
call fcn.00412d20
inc ebx
add esi, 0x10
cmp ebx, dword [ebp + 0x1c]
jl 0x45837b
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edi, [eax + 8]
lea ebx, [eax + 4]
call fcn.00472fd0
test eax, eax
jne 0x4583e8
mov ecx, esi
mov edx, dword [ecx + 4]
push edx
push str.Out_of_memory.
mov ecx, 0x4c3fc0
call fcn.0042f410
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ebx, dword [esp + 0x18]
jmp 0x458357
mov ebx, dword [esp + 0x18]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
mov dword [edx], esi
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jge 0x458553
mov ecx, ebx
shl ecx, 4
mov dword [esp + 0x1c], ecx
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x24], ecx
mov ecx, 1
sub ecx, eax
mov dword [esp + 0x2c], ecx
mov edi, dword [esi + 0xc]
add edi, dword [esp + 0x24]
cmp word [edi + 4], 0
je 0x45843c
mov eax, dword [edi]
mov dword [eax + 0xc], 0
mov byte [eax + 0x17], 1
cmp dword [esp + 0x14], 0
je 0x4584e8
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x10]
cmp dword [esp + 0x20], eax
jne 0x4584b7
mov edi, dword [edi]
lea eax, [esp + 0x38]
call fcn.004722b0
test eax, eax
je 0x458629
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], 0x10
inc ebx
mov dword [esp + 0x18], ebx
cmp ebx, dword [eax + 0x18]
jge 0x458539
mov eax, dword [eax + 0xc]
add eax, dword [esp + 0x1c]
mov edx, dword [eax + 8]
mov ecx, dword [eax]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
cmp eax, 4
jne 0x458539
mov dword [esp + 0x3c], 0
jmp 0x458539
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
mov esi, dword [esp + 0x14]
lea ebx, [esp + 0x48]
call fcn.00413060
test al, al
je 0x4584e4
mov edi, dword [edi]
mov eax, ebx
call fcn.004722b0
test eax, eax
je 0x45863d
mov ebx, dword [esp + 0x18]
jmp 0x458539
mov ebx, dword [esp + 0x18]
movzx eax, word [edi + 6]
dec eax
je 0x458528
dec eax
je 0x458515
dec eax
jne 0x4583d4
fld qword [edi + 8]
mov eax, dword [edi]
fstp qword [esp + 0x30]
push 0x28
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.004010e0
jmp 0x458539
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push 0x18
push eax
mov eax, dword [edi]
push ecx
call fcn.004010e0
jmp 0x458539
mov edx, dword [edi + 8]
mov ecx, dword [edi]
push 1
push 0
push 0xffffffffffffffff
push edx
call fcn.00472870
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 8]
add dword [esp + 0x24], 0x10
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x458421
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x28], ebx
jle 0x4585c2
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + ebx*4]
mov edx, dword [eax + 8]
cmp edx, 7
jge 0x4583d4
mov edi, dword [esi + 0xc]
cmp word [ecx + edi + 4], 0
je 0x458599
mov ecx, dword [ecx + edi]
cmp edx, 3
je 0x458651
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x17], 1
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x24]
mov edi, dword [edx + ecx]
call fcn.004722b0
test eax, eax
je 0x458629
mov ecx, dword [esp + 0x24]
inc ebx
add ecx, 0x10
mov dword [esp + 0x24], ecx
cmp ebx, dword [esp + 0x28]
jl 0x458565
mov dword [esp + 0x10], ebx
cmp byte [esi + 0x3a], 0
je 0x4586e3
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x45867d
push eax
mov eax, dword [esp + 0x1c]
call fcn.00469260
mov edi, eax
cmp edi, ebx
je 0x4586e3
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp + 0x1c]
jle 0x4586b0
sub eax, dword [ebp + 0x1c]
xor ecx, ecx
mov ebx, eax
cmp dword [edi + 0x18], ecx
jle 0x4586b0
xor edx, edx
lea esp, [esp]
mov eax, dword [edi + 0xc]
sub dword [edx + eax + 8], ebx
lea eax, [edx + eax + 8]
inc ecx
add edx, 0x10
cmp ecx, dword [edi + 0x18]
jl 0x458610
jmp 0x4586b0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x458669
lea esp, [esp]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x17], 0
je 0x458660
cmp eax, ecx
je 0x4585ac
mov dword [ecx + 0xc], eax
mov byte [ecx + 0x17], 0
jmp 0x4585ac
push 0x20
call fcn.0048a84b
add esp, 4
cmp eax, ebx
je 0x4586ac
mov dword [eax + 4], 1
mov dword [eax], vtable.Object.0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
jmp 0x4586ae
xor eax, eax
mov edi, eax
test edi, edi
je 0x4586e3
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x1c]
cmp ecx, eax
jge 0x4586d2
mov edx, dword [ebp + 0x18]
sub eax, ecx
push eax
lea eax, [edx + ecx*4]
push eax
push 1
push 0
call fcn.00469e40
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
add ecx, ecx
mov eax, dword [edx + ecx*8]
push edi
call fcn.00412a30
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4586f7
mov dword [ecx + 8], 0
mov dword [ecx], 0x49c820
mov eax, dword [0x4be40c]
mov edi, dword [eax + 0xb4]
push 0
push ecx
mov dword [eax + 0xb4], esi
mov ecx, dword [esi + 8]
inc dword [esi + 0x34]
push 2
call fcn.00425f80
dec dword [esi + 0x34]
mov ecx, dword [0x4be40c]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0xb4], edi
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, 8
je 0x458262
test eax, eax
je 0x458262
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x1c