Function at 0x10008c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100cc5cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 4]
test eax, eax
jne 0x10008c60
xor al, al
jmp 0x10009217
push ebp
push esi
push edi
mov ecx, ebx
call fcn.10004280
mov esi, eax
mov ecx, ebx
mov dword [esp + 0x10], esi
call fcn.10004290
mov edi, eax
push 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], edi
call fcn.10003620
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x24c], 0
call fcn.10003940
mov ecx, ebx
call fcn.100042d0
push eax
mov ecx, ebx
call fcn.100042c0
and eax, 0xffff
lea ecx, [esp + 0x48]
push eax
push edi
push esi
call fcn.10003960
push 0x100
mov ecx, ebx
call fcn.10004a20
push eax
lea ecx, [esp + 0x4c]
call fcn.10005450
mov ecx, ebx
call fcn.10009f10
test al, al
je 0x10008ce7
lea ecx, [esp + 0x44]
call fcn.10009f20
mov ecx, ebx
call fcn.1000a400
test al, al
je 0x10008cfb
lea ecx, [esp + 0x44]
call fcn.1000a410
cmp word [ebx + 0x16], 1
jne 0x10008f12
push 0
mov ecx, ebx
call fcn.10003b10
push 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x38], eax
call fcn.10003b10
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
push 0
lea edx, [ecx + eax - 1]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x54]
lea ebp, [eax*8]
lea ecx, [esp + 0x48]
sub ebp, edx
mov dword [esp + 0x3c], ebp
call fcn.10003bc0
mov eax, dword [ebx + 0x10]
xor esi, esi
test eax, eax
mov dword [esp + 0x24], esi
jle 0x10008e35
lea ecx, [esi + ebp]
push 8
push ecx
call dword [sym.imp.MSVCRT.dll_ldiv]
mov dword [esp + 0x44], eax
mov ecx, edx
mov al, 1
mov edx, dword [esp + 0x3c]
shl al, cl
mov ecx, dword [ebx + 0x30]
add esp, 8
mov edi, ecx
mov dword [esp + 0x14], 0
imul edi, esi
add edi, edx
mov byte [esp + 0x2b], al
test ecx, ecx
jle 0x10008e25
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
imul edx, ebp
sub edx, eax
mov eax, dword [esp + 0x2c]
xor esi, esi
lea ecx, [edx + eax - 1]
mov dword [esp + 0x30], ecx
mov edx, esi
mov ecx, dword [esp + 0x30]
imul edx, ebp
mov eax, dword [esp + 0x2c]
add edx, ecx
cmp edx, eax
jb 0x10008e02
cmp edx, dword [esp + 0x1c]
ja 0x10008e02
mov eax, 0x80
mov ecx, esi
sar eax, cl
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + edi]
test cl, al
je 0x10008dfc
mov al, byte [esp + 0x2b]
mov cl, byte [edx]
or cl, al
mov byte [edx], cl
mov ebp, dword [esp + 0x74]
inc esi
cmp esi, 8
jl 0x10008dc1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
inc eax
add edx, 8
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
jl 0x10008da6
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x38]
mov eax, dword [ebx + 0x10]
inc esi
cmp esi, eax
mov dword [esp + 0x24], esi
jl 0x10008d5f
mov ecx, ebx
call fcn.10009f10
test al, al
je 0x10008e7f
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x10008e7f
lea ebp, [eax - 1]
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x10008e75
push ebp
push esi
mov ecx, ebx
call fcn.1000a200
push eax
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.1000a130
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x10008e57
mov eax, dword [esp + 0x10]
inc edi
dec ebp
cmp edi, eax
jl 0x10008e4d
mov ecx, ebx
call fcn.1000a400
test al, al
je 0x100091cd
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 0x174]
mov esi, dword [ebx + 0x17c]
mov ecx, eax
mov edx, eax
sub ecx, edi
sub edx, esi
mov dword [esp + 0x1b4], ecx
mov ecx, dword [ebx + 0x170]
mov dword [esp + 0x1bc], edx
mov edx, dword [ebx + 0x178]
xor edi, edi
test eax, eax
mov dword [esp + 0x1c0], ecx
mov dword [esp + 0x1b8], edx
jle 0x100091cd
lea ebp, [eax - 1]
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x10008f03
push ebp
push esi
mov ecx, ebx
call fcn.1000a5b0
push eax
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.1000a570
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x10008ee5
mov eax, dword [esp + 0x10]
inc edi
dec ebp
cmp edi, eax
jl 0x10008edb
jmp 0x100091cd
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x2c], ebp
jle 0x100091cd
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x100091ba
cmp word [ebx + 0x16], 0x18
lea eax, [ebp + ebp*4]
mov ebx, ebp
lea edi, [eax + eax*4]
jne 0x10008fef
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub eax, ebp
shl edi, 2
mov dword [esp + 0x34], eax
dec eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x10008f6d
mov eax, ecx
cmp ebx, eax
jge 0x1000906f
mov eax, edi
mov ecx, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
push ebp
push ebx
mov dword [ecx + 0x144], eax
lea ecx, [esp + 0x4c]
call fcn.10005700
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push ebp
mov esi, eax
call fcn.10005700
mov ecx, ebp
add ebp, 0x40
mov edx, dword [esp + 0x18]
cmp edx, ebp
jl 0x10008fb5
mov edx, ebp
cmp ecx, edx
jge 0x10008fd5
mov dl, byte [eax]
add eax, 3
mov byte [esi], dl
mov dl, byte [eax - 2]
mov byte [esi + 1], dl
mov dl, byte [eax - 1]
mov byte [esi + 2], dl
mov edx, dword [esp + 0x74]
add esi, edx
inc ecx
jmp 0x10008fab
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
inc ebx
add edi, 0x64
dec eax
mov dword [esp + 0x14], eax
jmp 0x10008f64
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub eax, ebp
shl edi, 2
mov dword [esp + 0x34], eax
dec eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x10009010
mov eax, ecx
cmp ebx, eax
jge 0x1000906f
mov eax, edi
mov ecx, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x10]
mov esi, dword [esp + 0x20]
lea ebp, [esi + 0x40]
mov dword [ecx + 0x144], eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
jl 0x10009036
mov eax, ebp
cmp esi, eax
jge 0x10009058
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push esi
call fcn.10004bc0
push eax
push esi
push ebx
lea ecx, [esp + 0x50]
call fcn.10004f20
inc esi
jmp 0x1000902c
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
inc ebx
add edi, 0x64
dec eax
mov dword [esp + 0x14], eax
jmp 0x10009007
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.10009f10
test al, al
je 0x100090ee
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x1000909f
mov eax, ecx
cmp dword [esp + 0x14], eax
jge 0x100090ee
mov esi, dword [esp + 0x20]
lea edi, [esi + 0x40]
mov eax, dword [esp + 0x18]
cmp eax, edi
jl 0x100090b6
mov eax, edi
cmp esi, eax
jge 0x100090da
mov edx, dword [esp + 0x30]
mov ecx, ebx
push edx
push esi
call fcn.1000a200
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x50]
call fcn.1000a130
inc esi
jmp 0x100090ac
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
jmp 0x10009092
mov ecx, ebx
call fcn.1000a400
test al, al
je 0x1000919f
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx + 0x174]
mov edx, ecx
mov eax, ecx
sub edx, esi
mov edi, ebp
mov dword [esp + 0x1b4], edx
mov edx, dword [ebx + 0x17c]
sub eax, edx
mov edx, dword [ebx + 0x170]
mov dword [esp + 0x1bc], eax
mov eax, dword [ebx + 0x178]
mov dword [esp + 0x1c0], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1b8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], eax
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x10009158
mov eax, ecx
cmp edi, eax
jge 0x1000919f
mov esi, dword [esp + 0x20]
lea ebx, [esi + 0x40]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jl 0x1000916d
mov eax, ebx
cmp esi, eax
jge 0x1000918f
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push esi
call fcn.1000a5b0
push eax
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.1000a570
inc esi
jmp 0x10009163
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc edi
dec eax
mov dword [esp + 0x24], eax
jmp 0x1000914f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
add eax, 0x40
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x10008f38
mov eax, dword [esp + 0x10]
add ebp, 0x40
cmp ebp, eax
mov dword [esp + 0x2c], ebp
jl 0x10008f24
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
test ecx, ecx
push 1
je 0x100091e4
lea edx, [esp + 0x3c]
push edx
jmp 0x100091eb
lea eax, [esp + 0x3c]
mov ecx, ebx
push eax
call fcn.10003c30
lea ecx, [esp + 0x38]
mov dword [esp + 0x23c], 0xffffffff
mov dword [esp + 0x38], sym.BuildBG.dll_const_CxImage::vftable
call fcn.100036f0
lea ecx, [esp + 0x38]
call fcn.10003640
mov al, 1
mov ecx, dword [esp + 0x234]
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret 4