Function at 0x51c350
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x48]
push ebp
lea ebp, [ebx + 0x40]
mov dword [esp + 0x18], 0
push esi
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], eax
mov al, byte [ebx + 0x3c]
push edi
cmp al, 1
jne 0x51c37e
mov esi, 0x51b790
jmp 0x51c38d
cmp al, 2
mov esi, 0x51b740
mov ecx, 0x51b8b0
cmove esi, ecx
xor edx, edx
cmp byte [ebx + 0x3b], dl
jbe 0x51c3a5
lea ecx, [ebx + 0x60]
mov dword [ecx], esi
lea ecx, [ecx + 0x48]
movzx eax, byte [ebx + 0x3b]
inc edx
cmp edx, eax
jl 0x51c397
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0051c060
mov edi, eax
add esp, 8
test edi, edi
jne 0x51c53b
cmp byte [ebx + 0x39], al
je 0x51c5bc
movzx eax, byte [ebx + 0x3b]
lea eax, [eax + eax*8]
lea esi, [ebx + eax*8]
cmp dword [esi + 4], 0
lea edi, [esi - 8]
jne 0x51c407
mov eax, dword [esi]
push dword [eax + 0x1c]
call fcn.004fe280
mov ecx, eax
add esp, 4
mov dword [edi + 0xc], ecx
test ecx, ecx
je 0x51c536
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
mov ax, word [eax + 6]
mov word [ecx + 0x14], ax
mov eax, dword [edi + 0xc]
mov byte [eax + 0x17], 0
mov eax, dword [esp + 0x14]
push 0
push 0x38
test eax, eax
je 0x51c424
push eax
call fcn.004d5b60
mov esi, eax
add esp, 0xc
mov dword [esp + 0x10], esi
jmp 0x51c432
call fcn.004e8780
add esp, 8
mov dword [esp + 0x10], eax
mov esi, eax
test esi, esi
je 0x51c533
push 0x38
push 0
push esi
call fcn.005326d0
lea ebp, [esi + 0x30]
mov dword [ebx + 0x10], esi
push ebp
push dword [esp + 0x30]
push edi
call fcn.00519ca0
mov edi, eax
add esp, 0x18
mov dword [esp + 0x18], edi
mov eax, esi
test edi, edi
jne 0x51c51d
mov eax, dword [ebp]
mov dword [esp + 0x14], esi
mov ecx, dword [eax]
mov dword [eax + 0x18], 1
mov eax, dword [eax + 0x10]
cdq
sub dword [ecx + 0x40], eax
sbb dword [ecx + 0x44], edx
xor ebp, ebp
movzx eax, byte [ebx + 0x3b]
dec eax
test eax, eax
jle 0x51c4cf
mov eax, dword [esp + 0x10]
xor esi, esi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
nop dword [eax + eax]
mov eax, dword [edi + 0xc]
mov eax, dword [esi + eax + 0x30]
test eax, eax
je 0x51c4be
mov ecx, dword [eax]
mov dword [eax + 0x18], 1
mov eax, dword [eax + 0x10]
cdq
sub dword [ecx + 0x40], eax
sbb dword [ecx + 0x44], edx
movzx eax, byte [ebx + 0x3b]
inc ebp
dec eax
add esi, 0x38
cmp ebp, eax
jl 0x51c4a0
mov edi, dword [esp + 0x18]
xor esi, esi
xor ebp, ebp
movzx eax, byte [ebx + 0x3b]
cmp esi, eax
jge 0x51c519
mov eax, dword [esp + 0x20]
xor edi, edi
mov eax, dword [eax + 0xc]
add eax, ebp
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x51c511
cmp dword [ecx + 0x18], edi
je 0x51c504
push eax
push 0x51aaa0
push dword [ecx]
call fcn.0051b9e0
add esp, 0xc
jmp 0x51c50f
push 1
push eax
call fcn.0051abb0
add esp, 8
mov edi, eax
inc esi
add ebp, 0x38
test edi, edi
je 0x51c4d3
mov eax, dword [esp + 0x14]
xor esi, esi
test edi, edi
jne 0x51c53f
push 2
push eax
call fcn.0051abb0
add esp, 8
jmp 0x51c5d1
mov dword [ebx + 0x10], esi
mov edi, 7
mov esi, dword [esp + 0x20]
test esi, esi
je 0x51c5ed
xor ebx, ebx
cmp dword [esi], ebx
jle 0x51c566
xor ebp, ebp
nop
mov eax, dword [esi + 0xc]
add eax, ebp
push eax
call fcn.0051aac0
inc ebx
add esp, 4
add ebp, 0x38
cmp ebx, dword [esi]
jl 0x51c550
cmp dword [0x58d428], 0
je 0x51c5e3
mov eax, dword [0x590a50]
test eax, eax
je 0x51c582
push eax
call dword [0x58d478]
add esp, 4
push esi
call dword [0x58d454]
sub dword [0x5909e8], eax
dec dword [0x590a0c]
push esi
call dword [0x58d44c]
mov eax, dword [0x590a50]
add esp, 8
test eax, eax
je 0x51c5ed
push eax
call dword [0x58d480]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
push 0
push esi
push ebp
call fcn.0051a390
add esp, 0xc
mov dword [ebx + 0x14], esi
xor esi, esi
mov edi, eax
test edi, edi
jne 0x51c53f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
call dword [0x58d44c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret