Function at 0x495960
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x38
mov eax, dword [0x525210]
push ebx
imul eax, dword [0x52520c]
push ebp
push esi
push edi
mov dword [esp + 0x28], eax
xor edx, edx
xor eax, eax
mov dword [eax + 0x5252b8], edx
mov dword [eax + 0x525300], edx
sub eax, 0xc
cmp eax, 0xffffffdc
jge 0x49597b
mov ebp, dword [0x525188]
and ebp, 0xffff
jle 0x495a10
mov eax, dword [0x525200]
mov ecx, 0x52539c
and eax, 0xffff
mov esi, 0x525214
lea edi, [eax*8]
xor eax, eax
mov ax, word [0x525202]
lea ebx, [eax*8]
jmp 0x4959cb
xor edx, edx
mov eax, dword [esi]
mov word [ecx], dx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
xor edx, edx
add esi, 4
mov dx, word [ecx - 0x1c]
add ecx, 0x34
imul edx, dword [eax + 4]
lea eax, [edx + edi - 1]
xor edx, edx
div edi
xor edx, edx
mov dx, word [ecx - 0x4e]
mov dword [ecx - 0x28], eax
mov eax, dword [esp + 0x4c]
imul edx, dword [eax + 8]
lea eax, [edx + ebx - 1]
xor edx, edx
div ebx
dec ebp
mov dword [ecx - 0x24], eax
jne 0x4959c9
xor edx, edx
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push edx
push ebx
push ecx
mov dword [esp + 0x4c], edx
call fcn.00496b50
xor ebp, ebp
cmp eax, ebp
jne 0x495bf2
cmp dword [0x525270], 0xffffff9b
je 0x495bf2
push ebx
call fcn.00495c10
cmp eax, ebp
jne 0x495bf9
call fcn.00496230
cmp eax, ebp
jne 0x495bf9
mov al, byte [ebx + 4]
test al, al
jne 0x495a87
mov al, byte [ebx + 6]
mov edi, 0x496550
test al, al
je 0x495a6e
mov edi, 0x4967f0
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x495bc4
lea esi, [eax]
push ebx
call edi
dec esi
jne 0x495a7c
jmp 0x495bc4
mov eax, dword [0x525188]
and eax, 0xffff
dec eax
lea edx, [eax + eax*2]
lea ecx, [eax + edx*4]
mov edx, eax
dec eax
test edx, edx
lea esi, [ecx*4 + 0x525380]
je 0x495aba
xor ecx, ecx
mov cl, byte [ebx + 1]
cmp dword [esi + 0x30], ecx
je 0x495aba
sub esi, 0x34
mov edx, eax
dec eax
test edx, edx
jne 0x495aab
mov al, byte [ebx + 6]
mov dword [esp + 0x20], 0x496680
test al, al
je 0x495ad1
mov dword [esp + 0x20], 0x4968d0
xor edx, edx
xor eax, eax
mov dx, word [esi]
mov ax, word [esi + 2]
shl edx, 6
mov ebx, edx
mov ecx, dword [0x52520c]
imul ebx, eax
mov edi, ebx
mov dword [esp + 0x30], edx
imul edi, ecx
mov dword [esp + 0x34], edi
mov edi, dword [esi + 0x2c]
mov dword [esp + 0x1c], edi
mov edi, dword [0x525210]
cmp edi, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebp
jle 0x495bc4
mov dword [esp + 0x14], ebp
jmp 0x495b1c
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x24], ebp
jle 0x495b99
mov dword [esp + 0x10], ebp
mov edi, dword [esp + 0x1c]
mov ebp, edi
dec edi
test ebp, ebp
mov dword [esp + 0x1c], edi
je 0x495b99
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
add eax, edi
mov edi, dword [esi + 0x24]
xor ebp, ebp
lea edi, [edi + eax*2]
mov eax, dword [esi + 0x28]
test ecx, ecx
mov dword [0x525224], eax
jle 0x495b7c
add ebx, ebx
mov ecx, dword [esp + 0x50]
push edi
push esi
lea edx, [esp + 0x40]
push ecx
push edx
call dword [esp + 0x30]
mov ecx, dword [0x52520c]
add edi, ebx
inc ebp
cmp ebp, ecx
jl 0x495b57
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
add eax, edx
inc edi
mov dword [esp + 0x10], eax
xor eax, eax
mov ax, word [esi + 2]
mov dword [esp + 0x24], edi
cmp edi, eax
jl 0x495b28
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
inc edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x34]
add ebp, edi
mov edi, dword [0x525210]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
cmp ebp, edi
jl 0x495b1a
xor ebp, ebp
mov eax, dword [0x527aec]
mov ecx, dword [0x525258]
sar eax, 3
sub ecx, eax
mov dword [0x527aec], ebp
mov dword [0x525258], ecx
jns 0x495be7
call fcn.004981e0
inc dword [0x52522c]
jmp 0x495977
cmp eax, 0xfffffff1
jne 0x495bf9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8