Function at 0x46d081
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp edx, eax
setae al
and eax, 0xff
test eax, eax
je 0x46d27c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0xc
mov eax, 0xffffffff
mov edx, 0
div dword [ebp - 0x10]
test eax, eax
js 0x46d0d7
mov eax, 0xffffffff
mov edx, 0
div dword [ebp - 0x10]
jmp 0x46d0dc
mov eax, 0x7fffffff
cmp eax, dword [ebp - 0xc]
setb al
and eax, 0xff
test eax, eax
je 0x46d0f5
mov eax, 0xffffffff
jmp 0x46d385
mov eax, dword [ebp - 0xc]
lea edx, [eax*8]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
sete al
and eax, 0xff
test eax, eax
je 0x46d12d
mov eax, 0xffffffff
jmp 0x46d385
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0xc]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], 0
sete al
and eax, 0xff
test eax, eax
jne 0x46d1d9
cmp dword [ebp - 0x1c], 0
sete al
and eax, 0xff
test eax, eax
je 0x46d1e0
mov eax, 1
jmp 0x46d1e5
mov eax, 0
test eax, eax
jne 0x46d1f9
cmp dword [ebp - 0x20], 0
sete al
and eax, 0xff
test eax, eax
je 0x46d200
mov eax, 1
jmp 0x46d205
mov eax, 0
test eax, eax
jne 0x46d219
cmp dword [ebp - 0x24], 0
sete al
and eax, 0xff
test eax, eax
je 0x46d24f
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, 0xffffffff
jmp 0x46d385
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
shl eax, 3
lea ecx, [edx + eax]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
shl eax, 3
add eax, edx
mov edx, dword [eax + 4]
and edx, 0xfffc00ff
mov dword [eax + 4], edx
mov al, byte [ebp + 0x10]
cmp al, 5
jne 0x46d2c6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
cmp eax, 1
jg 0x46d2cd
mov al, byte [ebp + 0x10]
cmp al, 6
jne 0x46d2d4
mov ecx, 1
jmp 0x46d2d9
mov ecx, 0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
shl eax, 3
add edx, eax
mov al, cl
and eax, 1
and eax, 1
shl eax, 4
mov cl, al
mov al, byte [edx + 6]
and eax, 0xffffffef
or eax, ecx
mov byte [edx + 6], al
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
shl eax, 2
add eax, edx
mov dword [eax], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, ecx
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, ecx
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
leave
ret