Function at 0x522158
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff98
mov esi, eax
push 8
mov eax, dword [esi + 0x48]
push eax
mov eax, dword [esi + 0x4c]
push eax
mov ecx, 6
mov dl, 1
mov eax, dword [0x4c81a4]
call fcn.004cd044
mov dword [esp], eax
mov edx, dword [esp]
mov eax, esi
call fcn.004ef0c8
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x14]
mov edx, dword [esi + 0x70]
call fcn.0042a4f8
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.0042a614
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x10]
mov edx, dword [esi + 0x1cc]
call fcn.0042a1f8
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x10]
xor edx, edx
call fcn.0042a2f4
lea edx, [esp + 0x18]
mov eax, dword [esi + 0x168]
mov ebx, dword [eax + 0x128]
mov eax, ebx
call fcn.0042b178
lea edx, [esp + 0x18]
mov eax, ebx
call fcn.0042abd8
lea edx, [esp + 0x28]
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
call fcn.0042b178
mov eax, dword [esp + 0x34]
dec eax
push eax
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
call fcn.0042b178
mov eax, dword [esp + 0x48]
dec eax
push eax
lea edx, [esp + 0x54]
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
call fcn.0042b178
mov eax, dword [esp + 0x58]
inc eax
push eax
lea edx, [esp + 0x68]
mov eax, dword [esi + 0x168]
mov ebx, dword [eax + 0x128]
mov eax, ebx
call fcn.0042b178
mov eax, dword [esp + 0x68]
inc eax
pop edx
pop ecx
call fcn.0041c12c
lea edx, [esp + 0x18]
mov eax, ebx
call fcn.0042ad94
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 4
jle 0x5223fc
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
cmp eax, 4
jle 0x5223fc
mov eax, esi
call fcn.005391c8
call fcn.004fa808
mov ebx, eax
mov eax, dword [esi + 0x1cc]
call fcn.004fa808
mov edi, eax
mov eax, ebx
mov edx, edi
and eax, 0xff
and edx, 0xff
add eax, edx
shr eax, 1
mov byte [esp + 4], al
mov eax, ebx
test eax, eax
jns 0x5222f1
add eax, 0xff
sar eax, 8
mov edx, edi
test edx, edx
jns 0x522300
add edx, 0xff
sar edx, 8
and eax, 0xff
and edx, 0xff
add eax, edx
shr eax, 1
mov byte [esp + 5], al
mov eax, ebx
test eax, eax
jns 0x522321
add eax, 0xff
sar eax, 8
test eax, eax
jns 0x52232d
add eax, 0xff
sar eax, 8
mov edx, edi
test edx, edx
jns 0x52233c
add edx, 0xff
sar edx, 8
test edx, edx
jns 0x522349
add edx, 0xff
sar edx, 8
and eax, 0xff
and edx, 0xff
add eax, edx
shr eax, 1
mov ecx, eax
mov dl, byte [esp + 5]
mov al, byte [esp + 4]
call fcn.00407f00
mov ebx, eax
push ebx
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
mov ecx, 2
mov edx, 2
call fcn.0042b130
push ebx
mov edi, dword [esi + 0x168]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
mov ecx, eax
sub ecx, 3
mov eax, dword [edi + 0x128]
mov edx, 2
call fcn.0042b130
push ebx
mov edi, dword [esi + 0x168]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, 3
mov eax, dword [edi + 0x128]
mov ecx, 2
call fcn.0042b130
push ebx
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 3
push eax
mov edi, dword [esi + 0x168]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
sub edx, 3
mov eax, dword [edi + 0x128]
pop ecx
call fcn.0042b130
mov byte [esp + 6], 0x64
mov byte [esp + 7], 0
mov byte [esp + 8], 0x2d
mov byte [esp + 9], 0x50
mov byte [esp + 0xa], 0x96
mov byte [esp + 0xb], 0xd2
mov byte [esp + 0xc], 0xe6
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
test eax, eax
jl 0x522683
inc eax
mov dword [esp + 0x10], eax
xor edi, edi
mov edx, edi
mov eax, dword [esi + 0x168]
call fcn.004ce80c
mov ebp, eax
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
test eax, eax
jl 0x522678
inc eax
mov dword [esp + 0x14], eax
xor ebx, ebx
mov byte [ebp + ebx], 0xff
test edi, edi
je 0x522491
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
cmp edi, eax
je 0x522491
test ebx, ebx
je 0x522491
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
cmp ebx, eax
jne 0x522499
mov al, byte [esp + 6]
mov byte [ebp + ebx], al
test edi, edi
je 0x5224ad
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
cmp edi, eax
jne 0x5224c9
test ebx, ebx
je 0x5224c1
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
cmp ebx, eax
jne 0x5224c9
mov al, byte [esp + 7]
mov byte [ebp + ebx], al
test edi, edi
je 0x5224dd
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
cmp edi, eax
jne 0x5224fc
cmp ebx, 1
je 0x5224f4
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 2
cmp ebx, eax
jne 0x5224fc
mov al, byte [esp + 8]
mov byte [ebp + ebx], al
test edi, edi
je 0x522510
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
cmp edi, eax
jne 0x52252f
cmp ebx, 2
je 0x522527
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 3
cmp ebx, eax
jne 0x52252f
mov al, byte [esp + 9]
mov byte [ebp + ebx], al
cmp edi, 1
je 0x522546
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 2
cmp edi, eax
jne 0x522562
test ebx, ebx
je 0x52255a
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
cmp ebx, eax
jne 0x522562
mov al, byte [esp + 8]
mov byte [ebp + ebx], al
cmp edi, 1
je 0x522579
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 2
cmp edi, eax
jne 0x522598
cmp ebx, 1
je 0x522590
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 2
cmp ebx, eax
jne 0x522598
mov al, byte [esp + 0xa]
mov byte [ebp + ebx], al
cmp edi, 1
je 0x5225af
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 2
cmp edi, eax
jne 0x5225ce
cmp ebx, 2
je 0x5225c6
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 3
cmp ebx, eax
jne 0x5225ce
mov al, byte [esp + 0xb]
mov byte [ebp + ebx], al
cmp edi, 2
je 0x5225e5
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 3
cmp edi, eax
jne 0x522601
test ebx, ebx
je 0x5225f9
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
cmp ebx, eax
jne 0x522601
mov al, byte [esp + 9]
mov byte [ebp + ebx], al
cmp edi, 2
je 0x522618
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 3
cmp edi, eax
jne 0x522637
cmp ebx, 1
je 0x52262f
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 2
cmp ebx, eax
jne 0x522637
mov al, byte [esp + 0xb]
mov byte [ebp + ebx], al
cmp edi, 2
je 0x52264e
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 3
cmp edi, eax
jne 0x52266d
cmp ebx, 2
je 0x522665
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 3
cmp ebx, eax
jne 0x52266d
mov al, byte [esp + 0xc]
mov byte [ebp + ebx], al
inc ebx
dec dword [esp + 0x14]
jne 0x522464
inc edi
dec dword [esp + 0x10]
jne 0x52243a
mov eax, dword [esp]
call fcn.00403bfc
add esp, 0x68
pop ebp
pop edi
pop esi
pop ebx
ret