Function at 0x51fbd8
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 [0x4c7498]
call fcn.004cc338
mov dword [esp], eax
mov edx, dword [esp]
mov eax, esi
call fcn.004ee3a4
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x14]
mov edx, dword [esi + 0x70]
call fcn.0042982c
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00429948
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x10]
mov edx, dword [esi + 0x1cc]
call fcn.0042952c
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
mov eax, dword [eax + 0x10]
xor edx, edx
call fcn.00429628
lea edx, [esp + 0x18]
mov eax, dword [esi + 0x168]
mov ebx, dword [eax + 0x128]
mov eax, ebx
call fcn.0042a4ac
lea edx, [esp + 0x18]
mov eax, ebx
call fcn.00429f0c
lea edx, [esp + 0x28]
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
call fcn.0042a4ac
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.0042a4ac
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.0042a4ac
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.0042a4ac
mov eax, dword [esp + 0x68]
inc eax
pop edx
pop ecx
call fcn.0041b4d0
lea edx, [esp + 0x18]
mov eax, ebx
call fcn.0042a0c8
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 4
jle 0x51fe7c
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
cmp eax, 4
jle 0x51fe7c
mov eax, esi
call fcn.005369f0
call fcn.004f99a0
mov ebx, eax
mov eax, dword [esi + 0x1cc]
call fcn.004f99a0
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 0x51fd71
add eax, 0xff
sar eax, 8
mov edx, edi
test edx, edx
jns 0x51fd80
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 0x51fda1
add eax, 0xff
sar eax, 8
test eax, eax
jns 0x51fdad
add eax, 0xff
sar eax, 8
mov edx, edi
test edx, edx
jns 0x51fdbc
add edx, 0xff
sar edx, 8
test edx, edx
jns 0x51fdc9
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.0040769c
mov ebx, eax
push ebx
mov eax, dword [esi + 0x168]
mov eax, dword [eax + 0x128]
mov ecx, 2
mov edx, 2
call fcn.0042a464
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.0042a464
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.0042a464
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.0042a464
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 0x520103
inc eax
mov dword [esp + 0x10], eax
xor edi, edi
mov edx, edi
mov eax, dword [esi + 0x168]
call fcn.004cdb00
mov ebp, eax
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
test eax, eax
jl 0x5200f8
inc eax
mov dword [esp + 0x14], eax
xor ebx, ebx
mov byte [ebp + ebx], 0xff
test edi, edi
je 0x51ff11
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
cmp edi, eax
je 0x51ff11
test ebx, ebx
je 0x51ff11
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
cmp ebx, eax
jne 0x51ff19
mov al, byte [esp + 6]
mov byte [ebp + ebx], al
test edi, edi
je 0x51ff2d
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
cmp edi, eax
jne 0x51ff49
test ebx, ebx
je 0x51ff41
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
cmp ebx, eax
jne 0x51ff49
mov al, byte [esp + 7]
mov byte [ebp + ebx], al
test edi, edi
je 0x51ff5d
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
cmp edi, eax
jne 0x51ff7c
cmp ebx, 1
je 0x51ff74
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 2
cmp ebx, eax
jne 0x51ff7c
mov al, byte [esp + 8]
mov byte [ebp + ebx], al
test edi, edi
je 0x51ff90
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
cmp edi, eax
jne 0x51ffaf
cmp ebx, 2
je 0x51ffa7
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 3
cmp ebx, eax
jne 0x51ffaf
mov al, byte [esp + 9]
mov byte [ebp + ebx], al
cmp edi, 1
je 0x51ffc6
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 2
cmp edi, eax
jne 0x51ffe2
test ebx, ebx
je 0x51ffda
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
cmp ebx, eax
jne 0x51ffe2
mov al, byte [esp + 8]
mov byte [ebp + ebx], al
cmp edi, 1
je 0x51fff9
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 2
cmp edi, eax
jne 0x520018
cmp ebx, 1
je 0x520010
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 2
cmp ebx, eax
jne 0x520018
mov al, byte [esp + 0xa]
mov byte [ebp + ebx], al
cmp edi, 1
je 0x52002f
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 2
cmp edi, eax
jne 0x52004e
cmp ebx, 2
je 0x520046
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 3
cmp ebx, eax
jne 0x52004e
mov al, byte [esp + 0xb]
mov byte [ebp + ebx], al
cmp edi, 2
je 0x520065
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 3
cmp edi, eax
jne 0x520081
test ebx, ebx
je 0x520079
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
cmp ebx, eax
jne 0x520081
mov al, byte [esp + 9]
mov byte [ebp + ebx], al
cmp edi, 2
je 0x520098
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 3
cmp edi, eax
jne 0x5200b7
cmp ebx, 1
je 0x5200af
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 2
cmp ebx, eax
jne 0x5200b7
mov al, byte [esp + 0xb]
mov byte [ebp + ebx], al
cmp edi, 2
je 0x5200ce
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, 3
cmp edi, eax
jne 0x5200ed
cmp ebx, 2
je 0x5200e5
mov eax, dword [esi + 0x168]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, 3
cmp ebx, eax
jne 0x5200ed
mov al, byte [esp + 0xc]
mov byte [ebp + ebx], al
inc ebx
dec dword [esp + 0x14]
jne 0x51fee4
inc edi
dec dword [esp + 0x10]
jne 0x51feba
mov eax, dword [esp]
call fcn.00403600
add esp, 0x68
pop ebp
pop edi
pop esi
pop ebx
ret