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

Disassembly:
push 0xffffffffffffffff
push 0x1018417b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x101e8118]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101e8118]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov edi, dword [esp + 0x278]
mov esi, dword [esp + 0x284]
mov dword [esp + 0x34], ecx
call sym.tbcore3.DLL_public:_bool___thiscall_CxImage::IsValid_void_const
test al, al
jne 0x10112ece
or eax, 0xffffffff
jmp 0x101135cf
xor ebx, ebx
cmp edi, ebx
je 0x10112ed8
mov eax, edi
jmp 0x10112edf
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
lea eax, [esi + 0x2000]
push eax
mov dword [esp + 0x54], ebp
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ecx, dword [esi + 0x205c]
mov edi, eax
push ecx
mov dword [esp + 0x7c], edi
call sym.tbcore3.DLL_public:_static_struct_tagRGBQUAD___cdecl_CxImage::RGBtoRGBQUAD_unsigned_long_int_
mov edx, dword [esi + 0x2068]
push edx
mov dword [esp + 0x70], eax
call sym.tbcore3.DLL_public:_static_struct_tagRGBQUAD___cdecl_CxImage::RGBtoRGBQUAD_unsigned_long_int_
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x2060]
add esp, 8
cmp eax, 1
je 0x10112f40
cmp eax, ebx
je 0x10112f40
cmp eax, 2
je 0x10112f40
mov dword [esi + 0x2060], 1
cmp byte [esi + 0x2071], 0x32
jbe 0x10112f50
mov byte [esi + 0x2071], 0xa
fld1
fcomp dword [esi + 0x206c]
fnstsw ax
fldz
test ah, 5
jnp 0x10112f6e
fcom dword [esi + 0x206c]
fnstsw ax
test ah, 0x41
jne 0x10112f76
fstp dword [esi + 0x206c]
jmp 0x10112f78
fstp st(0)
cmp edi, ebx
je 0x10112f7f
push edi
jmp 0x10112f88
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 + 0x54], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
push 2
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
xor ecx, ecx
mov ebx, 1
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10112fd0
sub eax, edi
sar eax, 1
test eax, eax
mov dword [esp + 0x38], eax
jle 0x10113004
jmp 0x10112ff0
mov dx, word [esi + ecx*2]
add ecx, 1
cmp dx, 0xd
jne 0x10113000
add ebx, 1
cmp ecx, eax
jl 0x10112ff0
push 0xc00
lea ecx, [esp + 0x58]
push ecx
push eax
push esi
push ebp
call dword [sym.imp.USER32.dll_DrawTextW]
cmp byte [esi + 0x2014], 0
mov edi, dword [esp + 0x60]
je 0x10113032
mov eax, edi
cdq
sub eax, edx
sar eax, 1
cdq
idiv ebx
add dword [esp + 0x5c], eax
xor eax, eax
cmp byte [esi + 0x2064], al
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], eax
je 0x10113093
mov eax, edi
cdq
idiv ebx
movzx ecx, byte [esi + 0x2071]
mov ebx, eax
imul ecx, ebx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul qword [0x101a2bd0]
call fcn.10141080
mov dword [esp + 0x3c], eax
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x5c]
lea ebx, [ecx + eax*2]
lea ecx, [edi + eax*2]
xor eax, eax
push eax
push eax
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x94], eax
push eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x8c]
push eax
push ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x94], 0x28
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ecx
mov word [esp + 0xa0], 1
mov word [esp + 0xa2], 0x18
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x70]
lea eax, [ebx + ebx*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
imul eax, dword [esp + 0x2c]
add eax, eax
add eax, eax
push eax
push 0
push ecx
call fcn.1013b530
mov edx, dword [esi + 0x2060]
mov ecx, dword [esp + 0x44]
add esp, 0xc
or edx, 0x800
push edx
lea eax, [esp + 0x58]
push eax
push ecx
push esi
push ebp
call dword [sym.imp.USER32.dll_DrawTextW]
push 0
lea ecx, [esp + 0xac]
call sym.tbcore3.DLL_public:_void___thiscall_CxImage::constructor_unsigned_long_int_
push 0
push edi
lea ecx, [esp + 0xb0]
mov dword [esp + 0x278], 0
call sym.tbcore3.DLL_public:_bool___thiscall_CxImage::CreateFromHBITMAP_struct_HBITMAP_____struct_HPALETTE____
mov edx, dword [esp + 0x34]
mov edi, dword [edx + 0x10]
sub edi, dword [esp + 0x280]
mov eax, dword [esi + 0x2060]
sub edi, 1
cmp eax, 1
mov dword [esp + 0x280], edi
jne 0x101131e7
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
neg eax
add dword [esp + 0x27c], eax
jmp 0x101131f3
cmp eax, 2
jne 0x101131f3
sub dword [esp + 0x27c], ebx
cmp dword [esp + 0x27c], 0
jge 0x10113208
mov dword [esp + 0x27c], 0
cmp byte [esi + 0x2064], 0
je 0x101134e5
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x30], ebp
jle 0x101134e1
mov eax, dword [esp + 0x24]
mov ecx, eax
neg ecx
sub ebx, eax
add ebx, 0xffffffff
mov edx, ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], edx
jmp 0x10113250
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
cmp ebp, eax
fld qword [0x101a2ad0]
jg 0x10113292
fiadd dword [esp + 0x24]
mov edx, ecx
imul edx, ecx
fstp qword [esp + 0x1c]
mov ecx, eax
imul ecx, eax
sub ecx, edx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
call fcn.10142020
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fsubr qword [esp + 0x1c]
call fcn.10141080
mov dword [esp + 0x14], eax
jmp 0x101132dc
cmp ebp, ebx
jl 0x101132ce
fiadd dword [esp + 0x24]
mov ecx, edx
imul ecx, edx
fstp qword [esp + 0x1c]
mov edx, eax
imul edx, eax
sub edx, ecx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
call fcn.10142020
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fsubr qword [esp + 0x1c]
call fcn.10141080
mov dword [esp + 0x14], eax
jmp 0x101132d8
fstp st(0)
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
test ecx, ecx
jle 0x101134c0
lea ebx, [ebx]
cmp ebp, dword [esp + 0x24]
jg 0x1011330d
mov edx, ecx
sub edx, eax
sub edx, 1
cmp ebx, edx
jg 0x101134b5
cmp ebx, eax
jl 0x101134b5
cmp ebp, dword [esp + 0x38]
jl 0x1011332a
mov edx, ecx
sub edx, eax
sub edx, 1
cmp ebx, edx
jg 0x101134b5
cmp ebx, eax
jl 0x101134b5
fldz
fcomp dword [esi + 0x206c]
fnstsw ax
test ah, 5
jp 0x10113488
fld1
fcomp dword [esi + 0x206c]
fnstsw ax
test ah, 0x41
jne 0x10113488
mov eax, dword [esp + 0x27c]
push 1
add edi, ebx
push edi
add ebp, eax
push ebp
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x44]
call sym.tbcore3.DLL_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColor_long_int__long_int__bool_
fld dword [esi + 0x206c]
mov ecx, dword [eax]
fld1
fsubrp st(1)
movzx edx, cl
fld dword [esi + 0x206c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x44]
movzx eax, dl
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
fmulp st(1)
movzx edx, dh
fild dword [esp + 0x18]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x1c], eax
faddp st(1)
mov byte [esp + 0x43], 0
fldcw word [esp + 0x1c]
fistp dword [esp + 0x1c]
movzx eax, byte [esp + 0x1c]
mov byte [esp + 0x40], al
mov eax, ecx
fldcw word [esp + 0x18]
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x46]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
fmul dword [esi + 0x206c]
fild dword [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x1c], eax
shr ecx, 8
movzx ecx, cl
fmul st(2)
faddp st(1)
fldcw word [esp + 0x1c]
fistp dword [esp + 0x1c]
movzx eax, byte [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x288]
fldcw word [esp + 0x18]
mov byte [esp + 0x42], al
push ecx
mov ecx, dword [esp + 0x38]
fild dword [esp + 0x20]
fnstcw word [esp + 0x1c]
mov dword [esp + 0x20], edx
fmul dword [esi + 0x206c]
fild dword [esp + 0x20]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x20], eax
fmulp st(2)
faddp st(1)
fldcw word [esp + 0x20]
fistp dword [esp + 0x20]
movzx eax, byte [esp + 0x20]
mov byte [esp + 0x45], al
mov edx, dword [esp + 0x44]
fldcw word [esp + 0x1c]
push edx
push edi
push ebp
call sym.tbcore3.DLL_public:_void___thiscall_CxImage::SetPixelColor_long_int__long_int__struct_tagRGBQUAD__bool_
mov edi, dword [esp + 0x280]
mov ebp, dword [esp + 0x30]
jmp 0x101134ad
mov eax, dword [esp + 0x288]
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x280]
push ecx
lea edx, [ebx + edi]
lea ecx, [eax + ebp]
push edx
push ecx
mov ecx, dword [esp + 0x44]
call sym.tbcore3.DLL_public:_void___thiscall_CxImage::SetPixelColor_long_int__long_int__struct_tagRGBQUAD__bool_
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add ebx, 1
cmp ebx, ecx
jl 0x101132f0
mov eax, 1
add dword [esp + 0x48], eax
sub dword [esp + 0x28], eax
add ebp, eax
cmp ebp, dword [esp + 0x64]
mov dword [esp + 0x30], ebp
jl 0x10113240
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x50]
test ebx, ebx
mov dword [esp + 0x30], 0
jle 0x10113575
mov edx, dword [esp + 0x27c]
mov eax, dword [esp + 0x3c]
add eax, edx
mov dword [esp + 0x28], eax
xor esi, esi
cmp dword [esp + 0x2c], esi
jle 0x10113561
mov eax, edi
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x30]
push 1
push esi
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0xb8]
call sym.tbcore3.DLL_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColor_long_int__long_int__bool_
cmp byte [eax], 0
je 0x10113558
mov eax, dword [esp + 0x288]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x3c]
add edx, esi
push edx
push eax
call sym.tbcore3.DLL_public:_void___thiscall_CxImage::SetPixelColor_long_int__long_int__struct_tagRGBQUAD__bool_
add esi, 1
cmp esi, dword [esp + 0x2c]
jl 0x10113518
mov eax, dword [esp + 0x30]
add dword [esp + 0x28], 1
add eax, 1
cmp eax, ebx
mov dword [esp + 0x30], eax
jl 0x10113506
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x10113585
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x78]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov edx, dword [esp + 0x74]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call esi
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x270], 0xffffffff
mov dword [esp + 0xa8], vtable.CxImage.0
call sym.tbcore3.DLL_public:_bool___thiscall_CxImage::Destroy_void_
mov eax, 1
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.1013a297
add esp, 0x260
ret 0x14