Function at 0x4ad5f0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebp
push ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
sub esp, 0x2c
mov eax, dword [ebx + 0x68]
test al, 1
je 0x4ada0c
test al, 4
jne 0x4ad92b
lea eax, [esi + 1]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004a8b60
mov ebp, eax
mov dword [esp], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
call fcn.004a2c80
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.0049ee60
mov eax, dword [ebx + 0xb0]
xor edi, edi
test eax, eax
mov dword [esp + 0x20], eax
jae 0x4ad6d0
mov dword [esp + 0x28], ebp
nop
lea esi, [esi]
mov ebp, dword [ebx + 0xac]
mov esi, dword [ebx + 0xb0]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.004a2c80
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.0049ee60
mov eax, dword [esp + 0x20]
sub edi, eax
cmp edi, eax
ja 0x4ad660
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x48]
test edi, edi
je 0x4ad6d0
mov eax, dword [ebx + 0xac]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp + 0x24], eax
call fcn.004a2c80
mov eax, dword [esp + 0x24]
mov dword [esp], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call fcn.0049ee60
mov dword [esp], ebx
call fcn.004b20c0
test eax, eax
je 0x4ad72c
mov al, byte [ebx + 0x11c]
and al, 0x20
je 0x4ad700
mov edx, dword [ebx + 0x6c]
test dh, 2
jne 0x4ad700
mov dword [esp], ebx
mov dword [esp + 4], 0x528410
call fcn.0049e8b0
jmp 0x4ad718
test al, al
je 0x4ad779
mov dword [esp], ebx
mov dword [esp + 4], 0x528410
call fcn.0049e980
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.004a8bd0
add esp, 0x2c
pop ebx
pop ebp
pop esi
pop edi
ret
mov byte [esi + ebp], 0
mov al, byte [ebp]
mov edx, ebp
test al, al
je 0x4ad748
lea esi, [esi]
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x4ad740
lea eax, [ebp + esi]
mov ecx, eax
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x4ad787
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.004a8bd0
mov dword [esp], ebx
mov dword [esp + 4], 0x528b50
call fcn.0049ea50
add esp, 0x2c
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [ebx + 0x6c]
test ah, 4
jne 0x4ad6ee
jmp 0x4ad708
mov dl, byte [eax]
lea edi, [eax + 1]
mov byte [esp + 0x14], dl
cmp dl, 8
je 0x4ad91d
mov eax, 0xa
mov dword [esp + 0x20], eax
mov edx, edi
sub edx, ebp
sub esi, edx
mov dword [esp + 0x24], esi
mov edx, eax
mov eax, esi
mov ecx, edx
cdq
idiv ecx
test edx, edx
je 0x4ad7dd
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.004a8bd0
mov dword [esp], ebx
mov dword [esp + 4], 0x528b70
call fcn.0049ea50
add esp, 0x2c
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, esi
mov edx, ecx
mov dword [esp], ebx
mov ecx, edx
cdq
idiv ecx
lea edx, [eax + eax*8]
mov dword [esp + 0x1c], eax
add edx, eax
mov dword [esp + 4], edx
call fcn.004a8b60
mov dword [esp + 0x18], eax
xor esi, esi
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4ad8d5
xor eax, eax
mov dword [esp + 0x28], ebp
mov ebp, eax
mov ebx, edi
mov esi, esi
lea edi, [edi]
mov al, byte [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp al, 8
jne 0x4ad860
movzx eax, byte [ebx]
lea ecx, [ebx + 4]
mov word [edx + ebp], ax
movzx eax, byte [ebx + 1]
mov word [edx + ebp + 2], ax
movzx eax, byte [ebx + 2]
mov word [edx + ebp + 4], ax
movzx ebx, byte [ebx + 3]
mov word [edx + ebp + 6], bx
jmp 0x4ad8a9
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
shl eax, 8
add eax, ecx
lea ecx, [ebx + 8]
mov word [edx + ebp], ax
movzx eax, byte [ebx + 2]
movzx edi, byte [ebx + 3]
shl eax, 8
add eax, edi
mov word [edx + ebp + 2], ax
movzx eax, byte [ebx + 4]
movzx edi, byte [ebx + 5]
shl eax, 8
add eax, edi
mov word [edx + ebp + 4], ax
movzx eax, byte [ebx + 6]
movzx ebx, byte [ebx + 7]
shl eax, 8
add eax, ebx
mov word [edx + ebp + 6], ax
movzx eax, byte [ecx]
movzx ebx, byte [ecx + 1]
shl eax, 8
inc esi
add eax, ebx
lea ebx, [ecx + 2]
mov word [edx + ebp + 8], ax
mov eax, dword [esp + 0x1c]
add ebp, 0xa
cmp esi, eax
jl 0x4ad820
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebp
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call fcn.004a0840
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.004a8bd0
mov eax, dword [esp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004a8bd0
add esp, 0x2c
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, 6
mov dword [esp + 0x20], eax
jmp 0x4ad7a2
mov dword [esp], ebx
mov dword [esp + 4], 0x528b30
call fcn.0049ea50
mov eax, dword [ebx + 0xb0]
mov edi, esi
cmp esi, eax
mov dword [esp + 0x20], eax
jbe 0x4ad986
nop
lea esi, [esi]
mov ebp, dword [ebx + 0xac]
mov esi, dword [ebx + 0xb0]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.004a2c80
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.0049ee60
mov eax, dword [esp + 0x20]
sub edi, eax
cmp edi, eax
ja 0x4ad950
test edi, edi
je 0x4ad9b0
mov ebp, dword [ebx + 0xac]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
call fcn.004a2c80
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
call fcn.0049ee60
mov dword [esp], ebx
call fcn.004b20c0
test eax, eax
je 0x4ad9fa
mov al, byte [ebx + 0x11c]
and al, 0x20
je 0x4ad9e6
mov edx, dword [ebx + 0x6c]
test dh, 2
jne 0x4ad9e6
mov dword [esp], ebx
mov dword [esp + 4], 0x528410
call fcn.0049e8b0
add esp, 0x2c
pop ebx
pop ebp
pop esi
pop edi
ret
test al, al
je 0x4ada02
mov dword [esp], ebx
mov dword [esp + 4], 0x528410
call fcn.0049e980
add esp, 0x2c
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [ebx + 0x6c]
test ah, 4
jne 0x4ad9ce
jmp 0x4ad9ea
mov dword [esp], ebx
mov dword [esp + 4], 0x528b10
call fcn.0049eab0
jmp 0x4ad612