Function at 0x10016680
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100cc846
push eax
mov dword fs:[0], esp
sub esp, 0x654
push ebx
mov ebx, dword [esp + 0x668]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
je 0x10016d9c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov edi, dword [esi + 0x15c]
mov edx, dword [ebx]
mov dword [esp + 0x20], eax
push 1
lea eax, [esp + 0x2c]
push 6
push eax
mov ecx, ebx
mov dword [esp + 0x30], edi
call dword [edx + 8]
mov ecx, dword [esp + 0x2a]
push ecx
mov ecx, esi
call fcn.10004840
mov edx, dword [esp + 0x2c]
mov ecx, esi
push edx
mov word [esp + 0x2e], ax
call fcn.10004840
cmp word [esp + 0x28], 0
mov word [esp + 0x2c], ax
jne 0x10016d9c
mov ax, word [esp + 0x2a]
cmp ax, 1
je 0x10016718
cmp ax, 2
jne 0x10016d9c
mov eax, dword [esp + 0x2c]
and eax, 0xffff
mov dword [esi + 0x160], eax
shl eax, 4
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
xor ebp, ebp
add esp, 4
cmp word [esp + 0x2c], bp
mov dword [esp + 0x30], eax
jbe 0x10016894
lea edi, [eax + 6]
mov edx, dword [ebx]
push 1
lea eax, [edi - 6]
push 0x10
push eax
mov ecx, ebx
call dword [edx + 8]
mov cx, word [edi - 2]
push ecx
mov ecx, esi
call fcn.10004840
mov word [edi - 2], ax
mov dx, word [edi]
push edx
mov ecx, esi
call fcn.10004840
mov word [edi], ax
mov eax, dword [edi + 2]
push eax
mov ecx, esi
call fcn.10004870
mov dword [edi + 2], eax
mov ecx, dword [edi + 6]
push ecx
mov ecx, esi
call fcn.10004870
mov dword [edi + 6], eax
mov eax, dword [esp + 0x2c]
mov edx, eax
inc ebp
and edx, 0xffff
add edi, 0x10
cmp ebp, edx
jl 0x10016748
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
test edi, edi
jl 0x10016d92
and eax, 0xffff
cmp edi, eax
jge 0x10016d92
cmp dword [esi + 0x148], 0xffffffff
jne 0x100168a1
shl edi, 4
add edi, ebp
xor eax, eax
mov al, byte [edi]
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
xor eax, eax
mov al, byte [edi + 1]
test ecx, ecx
mov dword [esi + 0x10], eax
jne 0x1001687c
test eax, eax
jne 0x1001687c
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx]
push eax
mov eax, dword [edi + 0xc]
add eax, ecx
mov ecx, ebx
push eax
call dword [edx + 0x10]
push 0
lea ecx, [esp + 0x6c]
call fcn.10003620
push 0xffffffffffffffff
lea ecx, [esp + 0x6c]
mov dword [esp + 0x670], 0
call fcn.100047e0
push 4
push ebx
lea ecx, [esp + 0x70]
call fcn.10006600
test al, al
je 0x10016857
lea ecx, [esp + 0x68]
push 1
push ecx
mov ecx, esi
call fcn.10003c30
mov edx, dword [esp + 0x2c]
and edx, 0xffff
mov dword [esi + 0x160], edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x66c], 0xffffffff
mov dword [esp + 0x68], sym.BuildBG.dll_const_CxImage::vftable
call fcn.100036f0
lea ecx, [esp + 0x68]
call fcn.10003640
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi + 0x40], 5
mov al, 1
jmp 0x10016d9e
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
jmp 0x100167ad
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x20]
mov edx, dword [ebx]
shl edi, 4
add edi, eax
push 0
mov ecx, ebx
mov eax, dword [edi + 0xc]
add eax, ebp
push eax
call dword [edx + 0x10]
cmp byte [edi], 0
jne 0x1001695c
mov al, byte [edi + 1]
test al, al
jne 0x1001695c
push 0
lea ecx, [esp + 0x6c]
call fcn.10003620
push 4
push ebx
lea ecx, [esp + 0x70]
mov dword [esp + 0x674], 1
call fcn.10006600
test al, al
je 0x10016919
lea ecx, [esp + 0x68]
push 1
push ecx
mov ecx, esi
call fcn.10003c30
mov edx, dword [esp + 0x2c]
and edx, 0xffff
mov dword [esi + 0x160], edx
push 5
mov ecx, esi
call fcn.100042e0
lea ecx, [esp + 0x68]
mov dword [esp + 0x66c], 0xffffffff
mov dword [esp + 0x68], sym.BuildBG.dll_const_CxImage::vftable
call fcn.100036f0
lea ecx, [esp + 0x68]
call fcn.10003640
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
jmp 0x10016d9e
mov eax, dword [ebx]
push 1
lea ecx, [esp + 0x44]
push 0x28
push ecx
mov ecx, ebx
call dword [eax + 8]
lea edx, [esp + 0x40]
mov ecx, esi
push edx
call fcn.100048b0
mov ebp, dword [esp + 0x4e]
xor eax, eax
mov al, byte [edi + 1]
and ebp, 0xffff
xor ecx, ecx
push 5
mov cl, byte [edi]
push ebp
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x48], ebp
call fcn.10003960
mov eax, dword [esp + 0x60]
mov edx, dword [ebx]
test eax, eax
push 1
jne 0x100169aa
mov eax, dword [esi + 0x28]
shl eax, 2
lea ecx, [esp + 0x268]
push eax
push ecx
mov ecx, ebx
call dword [edx + 8]
mov edx, dword [esi + 0x28]
lea eax, [esp + 0x264]
push edx
push eax
mov ecx, esi
call fcn.10005450
cmp ebp, 0x18
jg 0x100169e9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x34]
mov edx, dword [ebx]
push 1
push eax
push ecx
mov ecx, ebx
call dword [edx + 8]
jmp 0x10016aae
mov edx, dword [esi + 0xc]
imul edx, dword [esi + 0x10]
shl edx, 2
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esi + 0xc]
add esp, 4
imul ecx, dword [esi + 0x10]
shl ecx, 2
mov ebp, eax
mov eax, dword [ebx]
push 1
push ecx
push ebp
mov ecx, ebx
mov dword [esp + 0x28], ebp
call dword [eax + 8]
mov ecx, esi
call fcn.10009f10
test al, al
jne 0x10016a2a
mov ecx, esi
call fcn.10009f20
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x10016aa4
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.10003b10
mov edi, eax
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x10016a90
mov al, byte [ebp]
mov byte [edi], al
mov cl, byte [ebp + 1]
inc edi
mov byte [edi], cl
mov dl, byte [ebp + 2]
mov ecx, dword [esp + 0x14]
inc edi
mov byte [edi], dl
mov al, byte [ebp + 3]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov ecx, esi
inc edi
call fcn.1000a130
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc]
add ebp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x10016a56
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x10016a39
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul edi, eax
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [ebx]
add esp, 4
mov ecx, ebx
mov dword [esp + 0x14], eax
push 1
push edi
push eax
call dword [edx + 8]
test eax, eax
je 0x10016b0c
xor eax, eax
test edi, edi
jle 0x10016afc
mov ecx, dword [esp + 0x14]
cmp byte [eax + ecx], 0xff
jne 0x10016b2f
inc eax
cmp eax, edi
jl 0x10016af1
push 0
mov ecx, esi
call fcn.100040c0
mov ecx, esi
call fcn.10009830
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
jmp 0x10016d9e
mov ecx, esi
mov byte [esp + 0x13], 0
call fcn.10009f10
test al, al
jne 0x10016b48
mov ecx, esi
call fcn.10009f20
jmp 0x10016b4d
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0x10]
xor ebp, ebp
test eax, eax
jle 0x10016bae
xor ebx, ebx
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x10016ba0
mov eax, edi
and eax, 0x80000007
jns 0x10016b6f
dec eax
or eax, 0xfffffff8
inc eax
mov edx, edi
mov cl, 7
sar edx, 3
sub cl, al
mov eax, dword [esp + 0x14]
add edx, ebx
mov dl, byte [edx + eax]
shr dl, cl
test dl, 1
je 0x10016b98
push 0
push ebp
push edi
mov ecx, esi
call fcn.1000a130
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jl 0x10016b61
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x10]
inc ebp
add ebx, ecx
cmp ebp, eax
jl 0x10016b58
mov al, byte [esp + 0x13]
test al, al
jne 0x10016bbd
mov ecx, esi
call fcn.10009f80
mov eax, dword [esi + 0x10]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
jle 0x10016c96
mov dword [esp + 0x20], ebp
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x10016c56
mov eax, edi
and eax, 0x80000007
jns 0x10016bed
dec eax
or eax, 0xfffffff8
inc eax
mov cl, 7
mov edx, edi
sub cl, al
mov eax, dword [esp + 0x20]
sar edx, 3
add edx, eax
mov eax, dword [esp + 0x14]
mov dl, byte [edx + eax]
shr dl, cl
test dl, 1
je 0x10016c4e
push 0
push ebp
lea eax, [esp + 0x44]
push edi
push eax
mov ecx, esi
call fcn.10004c80
mov ebx, dword [eax]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10016c44
push ebp
push edi
mov ecx, esi
call fcn.10004ab0
and eax, 0xff
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ebx
jmp 0x10016c4e
cmp dword [esp + 0x34], ebx
je 0x10016c4e
inc dword [esp + 0x18]
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jl 0x10016bdf
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x10]
inc ebp
add edx, ecx
cmp ebp, eax
mov dword [esp + 0x20], edx
jl 0x10016bd6
cmp dword [esp + 0x18], 1
jne 0x10016c96
mov edx, dword [esp + 0x34]
mov ecx, esi
push edx
call fcn.100040f0
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
call fcn.100040c0
mov ecx, esi
call fcn.10009f80
cmp dword [esp + 0x38], 8
jg 0x10016b0c
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x68]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
test eax, eax
jle 0x10016ce3
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x10016cdb
push ebx
push edi
mov ecx, esi
call fcn.10004bc0
and eax, 0xff
inc edi
mov byte [esp + eax + 0x68], 1
mov eax, dword [esi + 0xc]
cmp edi, eax
jl 0x10016cc0
mov eax, dword [esi + 0x10]
inc ebx
cmp ebx, eax
jl 0x10016cb7
mov eax, dword [esi + 0x28]
dec eax
js 0x10016b0c
mov cl, byte [esp + eax + 0x68]
test cl, cl
je 0x10016cfd
dec eax
jns 0x10016ced
jmp 0x10016b0c
test eax, eax
mov dword [esp + 0x1c], eax
jl 0x10016b0c
mov eax, dword [esi + 0x10]
xor ebx, ebx
test eax, eax
mov byte [esp + 0x13], 0
jle 0x10016d86
xor ebp, ebp
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x10016d64
mov edx, edi
and edx, 0x80000007
jns 0x10016d31
dec edx
or edx, 0xfffffff8
inc edx
mov eax, edi
mov cl, 7
sar eax, 3
sub cl, dl
mov edx, dword [esp + 0x14]
add eax, ebp
mov al, byte [eax + edx]
shr al, cl
test al, 1
je 0x10016d5c
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push edi
mov ecx, esi
call fcn.10004f20
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jl 0x10016d22
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x10]
inc ebx
add ebp, ecx
cmp ebx, eax
jl 0x10016d19
mov al, byte [esp + 0x13]
test al, al
je 0x10016d86
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
call fcn.100040c0
mov ecx, esi
call fcn.10009f80
jmp 0x10016b0c
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor al, al
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x660
ret 4