Function at 0x524cf0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, esp
mov dword [esi + 0x98], ebp
mov edi, dword [ebp + 0x14]
lea ecx, [esi + 0xa0]
mov dword [ecx - 4], esp
xor eax, eax
dec eax
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0x467460
mov edx, dword fs:[0]
mov dword [ecx], edx
mov ebx, dword [ebp + 0x10]
mov dword fs:[0], ecx
mov ecx, edi
sub ecx, ebx
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
mov dword [esi + 0x90], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x80], xmm0
movdqa xmmword [esi + 0x70], xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
movdqa xmmword [esi + 0x40], xmm0
movdqa xmmword [esi + 0x30], xmm0
mov dword [esi + 0x18], 0
cmp ecx, 0x65
mov dword [esi + 0x14], ecx
jb 0x524d9d
push ecx
call fcn.004c3520
add esp, 4
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
test eax, eax
jne 0x524daa
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0xa8], eax
call fcn.00534440
lea eax, [esi + 0x30]
mov dword [esi + 0x10], eax
mov dword [esi + 8], 0
mov ecx, dword [ebp + 0x14]
cmp ebx, ecx
je 0x524dee
mov dword [esi + 0x18], 0
mov edi, ebx
mov ebx, dword [esi + 0x10]
cmp byte [edi + 0xb], 0
js 0x524dde
mov ecx, edi
call fcn.004b0d70
mov ecx, dword [ebp + 0x14]
test eax, eax
je 0x524de3
mov byte [ebx], 1
add edi, 0xc
inc ebx
cmp edi, ecx
jne 0x524dbd
jmp 0x524dee
mov eax, dword [edi + 4]
jmp 0x524dcd
mov byte [ebx], 2
dec dword [esi + 0x14]
inc dword [esi + 0x18]
jmp 0x524dd4
mov dword [esi + 0xa8], 0
xor edi, edi
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0xa8], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0051cf20
mov ebx, dword [ebp + 0x10]
test al, al
jne 0x525040
cmp dword [esi + 0x14], 0
je 0x525040
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x524fcf
movzx eax, word [eax]
mov word [esi + 6], ax
cmp byte [ebp + 0x20], 0
jne 0x524e86
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0xa8], 0
movzx eax, word [esi + 6]
mov ecx, ebx
push eax
call edi
mov ebx, dword [ebp + 0x10]
mov word [esi + 6], ax
mov edi, dword [esi + 0x1c]
lea edx, [edi + 1]
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], ecx
cmp ecx, dword [ebp + 0x14]
je 0x524f57
cmp byte [eax], 1
je 0x524eb5
mov ecx, dword [esi + 0x28]
add ecx, 0xc
inc eax
jmp 0x524e9b
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x28]
push edi
call fcn.0052ef90
movzx edi, word [eax]
cmp byte [ebp + 0x20], 0
jne 0x524f02
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0xa8], 0
movzx eax, di
mov ecx, dword [ebp + 0x18]
push eax
call ebx
mov ebx, dword [ebp + 0x10]
mov edi, eax
mov eax, dword [esi + 0x20]
cmp word [esi + 6], di
mov edx, dword [esi + 0x24]
jne 0x524f3c
mov ecx, dword [esi + 0x28]
cmp byte [ecx + 0xb], 0
mov edi, dword [esi + 0x1c]
js 0x524f52
call fcn.004b0d70
mov edx, dword [esi + 0x24]
mov cl, 1
mov dword [esi + 0x2c], ecx
cmp eax, edx
jne 0x524f4a
mov eax, dword [esi + 0x20]
mov byte [eax], 2
dec dword [esi + 0x14]
inc dword [esi + 0x18]
jmp 0x524eac
mov byte [eax], 0
dec dword [esi + 0x14]
mov edi, dword [esi + 0x1c]
jmp 0x524eac
mov eax, dword [esi + 0x20]
jmp 0x524eac
mov eax, dword [ecx + 4]
jmp 0x524f22
mov edi, edx
test byte [esi + 0x2c], 1
je 0x524dfa
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x52500d
add eax, 2
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
add eax, edx
mov edx, dword [esi + 0x24]
mov edi, edx
cmp eax, 2
jb 0x524dfa
mov edi, edx
cmp ebx, dword [ebp + 0x14]
je 0x524dfa
mov edi, ebx
mov ebx, dword [esi + 0x10]
cmp byte [ebx], 2
jne 0x524fbf
cmp byte [edi + 0xb], 0
js 0x524fca
mov ecx, edi
call fcn.004b0d70
mov edx, dword [esi + 0x24]
cmp eax, edx
je 0x524fbf
mov byte [ebx], 0
dec dword [esi + 0x18]
add edi, 0xc
inc ebx
cmp edi, dword [ebp + 0x14]
jne 0x524fa0
jmp 0x525006
mov eax, dword [edi + 4]
jmp 0x524fb5
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0xa8], 0
mov ecx, edi
call ebx
mov ebx, dword [ebp + 0x10]
mov word [esi + 6], ax
jmp 0x524e46
mov edi, edx
jmp 0x524dfa
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0xa8], 0
mov ecx, edi
call ebx
mov ebx, dword [ebp + 0x10]
jmp 0x524f7a
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0051cf20
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
test al, al
mov ebx, dword [ebp + 0x1c]
je 0x525062
or byte [ebx], 2
cmp edx, ecx
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x10]
je 0x525079
cmp byte [edi], 2
je 0x5250a3
add edx, 0xc
inc edi
cmp edx, ecx
jne 0x52506c
or byte [ebx], 4
test eax, eax
je 0x52508d
push eax
mov edi, ecx
call fcn.004c3570
mov ecx, edi
add esp, 4
mov eax, dword [esi + 0xa0]
mov dword fs:[0], eax
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edx
jmp 0x52507c