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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x1001c018]
xor eax, esp
mov dword [esp + 0x870], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x30], edi
je 0x1000b492
cmp dword [edi + 0x20], 1
jne 0x1000b4ab
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.10014613
mov esp, ebp
pop ebp
ret 4
mov esi, dword [eax + 0x18]
push 0x7fe
lea eax, [esp + 0x7e]
push 0
push eax
mov dword [esp + 0x4c], esi
mov word [esp + 0x84], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [edi + 0x14]
cmp ecx, 0xffffffff
mov ebx, eax
jne 0x1000b4e7
xor edx, edx
xor eax, eax
jmp 0x1000b4fb
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
sub eax, edx
cmp ecx, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1000b50c
xor ecx, ecx
xor eax, eax
jmp 0x1000b520
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
push edx
sub eax, ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
jne 0x1000b54d
xor edx, edx
xor ecx, ecx
jmp 0x1000b561
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x10]
sub ecx, edx
cmp eax, 0xffffffff
jne 0x1000b56e
xor edx, edx
xor eax, eax
jmp 0x1000b582
mov eax, dword [edi + 8]
mov esi, dword [edi + 0x10]
mov edx, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x1c], esi
push ecx
sub eax, edx
push eax
push 0
push 0
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push ebx
lea esi, [edi + 0x24]
call fcn.1000a9d0
mov ecx, dword [edi + 0x14]
cmp ecx, 0xffffffff
jne 0x1000b5ac
xor edx, edx
xor eax, eax
jmp 0x1000b5c0
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
sub eax, edx
cmp ecx, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x1000b5d1
xor ecx, ecx
xor eax, eax
jmp 0x1000b5e5
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], edx
sub eax, ecx
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
mov eax, dword [edi + 0x54]
xor esi, esi
test eax, eax
fdiv qword [0x100177d0]
fild dword [edi + 0x54]
jge 0x1000b607
fadd qword [0x100177c8]
fmulp st(1)
call fcn.10014f80
add edi, 0x3c
cmp dword [edi + 0x14], esi
je 0x1000b628
mov dword [edi + 4], esi
xor ecx, ecx
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
push ebx
mov esi, edi
call fcn.1000a9d0
call fcn.1000dea0
mov edi, 0x32
call fcn.1000e4f0
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push ebx
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x54]
push eax
push str._d___
lea ecx, [esp + 0x80]
push 0x400
push ecx
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x10
push 0x400
lea edx, [esp + 0x6c]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x84]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
sub eax, esi
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
cdq
sub eax, edx
fdiv qword [0x100177d0]
mov ecx, eax
mov eax, dword [esp + 0x64]
sub eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar ecx, 1
add ecx, esi
mov esi, eax
mov eax, dword [edx + 0x54]
sar esi, 1
add esi, edi
test eax, eax
fild dword [edx + 0x54]
jge 0x1000b6e7
fadd qword [0x100177c8]
fnstcw word [esp + 0xc]
mov edi, ecx
movzx eax, word [esp + 0xc]
fmulp st(1)
or eax, 0xc00
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
fiadd dword [esp + 0x58]
sub eax, dword [esp + 0x68]
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
cdq
sub eax, edx
fldcw word [esp + 0xc]
sar eax, 1
sub edi, eax
add ecx, eax
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov edx, esi
sub edx, eax
add esi, eax
mov eax, dword [esp + 0x20]
cmp eax, edi
mov dword [esp + 0x14], edx
jae 0x1000b788
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x78]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000b760
mov ecx, dword [esp + 0x14]
push 0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x80]
push eax
push 0
push 0
push ecx
jmp 0x1000b864
cmp eax, ecx
push 0xffffff
push ebx
jbe 0x1000b7cb
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x78]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000b7a3
sub eax, edx
push 0
sar eax, 1
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x80]
push edx
push 0
push 0
push eax
jmp 0x1000b864
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x78]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1000b804
mov esi, dword [esp + 0x14]
push 0
sub eax, ecx
sar eax, 1
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x2c]
push edx
push 4
push esi
push edi
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [esp + 0x78]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1000b842
sub eax, ecx
push 0
sar eax, 1
push eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x54]
push ecx
push 4
push esi
push edi
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [esp + 0x44]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push ebx
call edi
mov eax, dword [esp + 0xc]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x14]
cmp eax, 0xffffffff
jne 0x1000b8a4
xor esi, esi
xor edx, edx
jmp 0x1000b8b8
mov edx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x10]
sub edx, esi
cmp eax, 0xffffffff
jne 0x1000b8c5
xor esi, esi
xor eax, eax
jmp 0x1000b8d9
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x1c], ecx
push 0xcc0020
push 0
push 0
push ebx
push edx
mov edx, dword [esp + 0x54]
sub eax, esi
push eax
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x38]
push eax
push ebx
call edi
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x87c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10014613
mov esp, ebp
pop ebp
ret 4