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

Disassembly:
push 0xffffffffffffffff
push 0x100cc56b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
call fcn.100047f0
test al, al
jne 0x10007c04
or eax, 0xffffffff
jmp 0x100083ad
mov ebx, dword [esp + 0x2b8]
xor edi, edi
cmp ebx, edi
je 0x10007c15
mov esi, ebx
jmp 0x10007c1e
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
cmp esi, edi
jne 0x10007c29
xor eax, eax
jmp 0x100083ad
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
cmp ebx, edi
mov dword [esp + 0x44], ebp
jne 0x10007c42
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp ebp, edi
jne 0x10007c4d
xor eax, eax
jmp 0x100083ad
mov esi, dword [esp + 0x2c4]
lea eax, [esi + 0x1000]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, dword [esi + 0x103c]
mov ebx, eax
push ecx
mov dword [esp + 0x80], ebx
call fcn.100052f0
mov edx, dword [esi + 0x1048]
mov dword [esp + 0x68], eax
push edx
call fcn.100052f0
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x1040]
add esp, 8
cmp eax, 1
je 0x10007cab
cmp eax, edi
je 0x10007cab
cmp eax, 2
je 0x10007cab
mov dword [esi + 0x1040], 1
cmp byte [esi + 0x1051], 0x32
jbe 0x10007cbb
mov byte [esi + 0x1051], 0xa
fld dword [esi + 0x104c]
fcomp qword [0x100cd3f8]
fnstsw ax
test ah, 0x41
je 0x10007ce1
fld dword [esi + 0x104c]
fcomp qword [0x100cd3f0]
fnstsw ax
test ah, 1
je 0x10007ce7
mov dword [esi + 0x104c], edi
cmp ebx, edi
je 0x10007cee
push ebx
jmp 0x10007cf7
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
push ebp
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push edi
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
push 2
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, 1
test ecx, ecx
mov dword [esp + 0x10], ecx
jle 0x10007d57
mov al, byte [edx + esi]
inc edx
cmp al, 0xd
jne 0x10007d53
inc ebx
cmp edx, ecx
jl 0x10007d4a
lea edx, [esp + 0x54]
push 0xc00
push edx
push ecx
push esi
push ebp
call dword [sym.imp.USER32.dll_DrawTextA]
mov al, byte [esi + 0x1014]
mov edi, dword [esp + 0x60]
test al, al
je 0x10007d8c
mov eax, edi
mov ecx, dword [esp + 0x5c]
cdq
sub eax, edx
sar eax, 1
cdq
idiv ebx
add ecx, eax
mov dword [esp + 0x5c], ecx
mov al, byte [esi + 0x1045]
xor ebp, ebp
test al, al
mov dword [esp + 0x40], ebp
mov dword [esp + 0x20], ebp
je 0x10007df6
mov eax, edi
xor ecx, ecx
cdq
idiv ebx
mov cl, byte [esi + 0x1051]
mov ebx, eax
mov eax, 0x51eb851f
imul ecx, ebx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul qword [0x100cd3e8]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x40], eax
mov eax, 0x55555556
imul ebx
mov eax, dword [esp + 0x5c]
mov ecx, edx
mov ebp, dword [esp + 0x40]
shr ecx, 0x1f
add edx, ecx
add eax, edx
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x5c]
xor eax, eax
mov ecx, 0xa
push eax
lea ebx, [edx + ebp*2]
lea edx, [edi + ebp*2]
lea edi, [esp + 0x84]
push eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x8c]
push 0
push ecx
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x98], 0x28
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], edx
mov word [esp + 0xa4], 1
mov word [esp + 0xa6], 0x18
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [ebx + ebx*2]
mov dword [esp + 0x78], eax
mov edi, dword [esp + 0x74]
lea eax, [edx*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
mov ecx, eax
xor eax, eax
sar ecx, 5
imul ecx, dword [esp + 0x24]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x10]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x1040]
lea ecx, [esp + 0x54]
or ah, 8
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push esi
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
push 0
lea ecx, [esp + 0xb0]
call fcn.10003620
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x2b8], 0
call fcn.10007a50
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xac]
mov ebx, dword [edx + 0x10]
mov edx, dword [esp + 0x2c0]
sub ebx, edx
dec ebx
call fcn.10009830
mov al, byte [esi + 0x1044]
test al, al
jne 0x10007f26
push 0x80
lea ecx, [esp + 0xb0]
call fcn.10018260
mov eax, dword [esi + 0x1040]
cmp eax, 1
jne 0x10007f47
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2bc]
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
jmp 0x10007f59
cmp eax, 2
jne 0x10007f60
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2bc]
sub ecx, eax
mov dword [esp + 0x2bc], ecx
mov eax, dword [esp + 0x2bc]
test eax, eax
jge 0x10007f76
mov dword [esp + 0x2bc], 0
mov al, byte [esi + 0x1045]
test al, al
je 0x100081ed
mov eax, dword [esp + 0x1c]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x2c], ebp
jle 0x100081e9
mov ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
cmp ebp, eax
jg 0x10007fd5
mov ecx, ebp
mov edx, eax
sub ecx, eax
imul edx, eax
fild dword [esp + 0x20]
fadd qword [0x100cd390]
mov eax, ecx
imul eax, ecx
sub edx, eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fsqrt
fsubp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x30], eax
jmp 0x10008022
mov ecx, dword [esp + 0x1c]
sub ecx, eax
dec ecx
cmp ebp, ecx
jl 0x10008016
mov edx, dword [esp + 0x18]
sub edx, eax
fild dword [esp + 0x20]
lea ecx, [edx - 1]
mov edx, ecx
imul edx, ecx
fadd qword [0x100cd390]
mov ecx, eax
imul ecx, eax
sub ecx, edx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fsqrt
fsubp st(1)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x30], eax
jmp 0x1000801e
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x10], edi
jle 0x100081cf
cmp ebp, dword [esp + 0x20]
jg 0x1000804f
mov edx, ecx
sub edx, eax
dec edx
cmp edi, edx
jg 0x100081c2
cmp edi, eax
jl 0x100081c2
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x20]
dec edx
cmp ebp, edx
jl 0x10008071
mov edx, ecx
sub edx, eax
dec edx
cmp edi, edx
jg 0x100081c2
cmp edi, eax
jl 0x100081c2
fld dword [esi + 0x104c]
fcomp qword [0x100cd3f0]
fnstsw ax
test ah, 0x41
jne 0x10008195
fld dword [esi + 0x104c]
fcomp qword [0x100cd3f8]
fnstsw ax
test ah, 1
je 0x10008195
mov eax, dword [esp + 0x2bc]
add edi, ebx
add ebp, eax
push 1
push edi
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov ecx, dword [esp + 0x38]
call fcn.10004c80
mov eax, dword [eax]
mov edx, dword [esp + 0x48]
fld dword [esi + 0x104c]
fsubr qword [0x100cd3f8]
mov dword [esp + 0x6c], eax
and eax, 0xff
mov dword [esp + 0x14], eax
and edx, 0xff
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fmul dword [esi + 0x104c]
fild dword [esp + 0x14]
fmul st(2)
faddp st(1)
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x4a]
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x6e]
and ecx, 0xff
and eax, 0xff
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fmul dword [esi + 0x104c]
fild dword [esp + 0x14]
fmul st(2)
faddp st(1)
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x6d]
mov byte [esp + 0x3e], al
mov eax, dword [esp + 0x49]
and edx, 0xff
mov dword [esp + 0x14], edx
and eax, 0xff
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fmul dword [esi + 0x104c]
fild dword [esp + 0x14]
fmul st(2)
faddp st(1)
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x2c8]
mov byte [esp + 0x3d], al
mov byte [esp + 0x3f], 0
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push edi
push ebp
fstp st(0)
call fcn.100050d0
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
jmp 0x100081ba
mov eax, dword [esp + 0x2c8]
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x2c0]
push ecx
lea edx, [edi + ebx]
lea ecx, [eax + ebp]
push edx
push ecx
mov ecx, dword [esp + 0x38]
call fcn.100050d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
inc edi
cmp edi, ecx
mov dword [esp + 0x10], edi
jl 0x10008034
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ebp
dec ecx
cmp ebp, eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ecx
jl 0x10007f9c
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
mov dword [esp + 0x2c], edi
jle 0x1000833d
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x1000832c
mov edx, dword [esp + 0x2bc]
add edi, edx
lea eax, [esi + ebx]
push 1
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
mov ecx, dword [esp + 0x38]
call fcn.10004c80
mov edx, dword [esp + 0x2c]
push 1
push esi
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0xbc]
call fcn.10004c80
mov eax, dword [esp + 0x14]
cmp al, 0xff
je 0x1000831b
mov ecx, dword [esp + 0x34]
and eax, 0xff
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
fild dword [esp + 0x10]
and eax, 0xff
and ecx, 0xff
sub ecx, eax
mov dword [esp + 0x18], eax
fmul dword [0x100cd3e4]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul st(1)
fiadd dword [esp + 0x18]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x36]
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x66]
and edx, 0xff
and eax, 0xff
sub edx, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul st(1)
fiadd dword [esp + 0x18]
call sub.MSVCRT.dll__ftol
mov byte [esp + 0x36], al
mov eax, dword [esp + 0x65]
mov ecx, dword [esp + 0x35]
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x18], eax
sub ecx, eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul st(1)
fiadd dword [esp + 0x18]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x2c8]
mov ecx, esi
mov byte [esp + 0x35], al
mov byte [esp + 0x37], 0
mov eax, dword [esp + 0x34]
sub ecx, ebp
push edx
add ecx, ebx
push eax
lea edx, [edi + ebp]
push ecx
mov ecx, dword [esp + 0x34]
push edx
fstp st(0)
call fcn.100050d0
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x10008216
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
mov dword [esp + 0x2c], edi
jl 0x100081ff
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10008353
mov edi, dword [esp + 0x44]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x10008357
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x7c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
mov ecx, dword [esp + 0x78]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0xac]
mov dword [esp + 0x2b0], 0xffffffff
mov dword [esp + 0xac], sym.BuildBG.dll_const_CxImage::vftable
call fcn.100036f0
lea ecx, [esp + 0xac]
call fcn.10003640
mov eax, 1
mov ecx, dword [esp + 0x2a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a4
ret 0x14