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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ad66c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ebx, ecx
cmp dword [ebx + 0x70], 4
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 4]
push edi
mov dword [esp + 0x44], eax
jne 0x41293e
xor edx, edx
cmp dword [ebx + 0x74], edx
je 0x412840
mov eax, dword [esi]
xor ecx, ecx
cmp dword [ebx + 0x78], edx
cdq
sete cl
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x7c]
add ecx, eax
mov dword [esp + 0x58], ecx
xor edx, edx
jmp 0x412853
cmp dword [ebx + 0x78], edx
je 0x41284c
mov eax, dword [esi]
sub eax, dword [ebx + 0x7c]
jmp 0x41284f
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x58], eax
cmp dword [ebx + 0x8c], edx
je 0x412883
mov eax, dword [esi]
xor ecx, ecx
cmp dword [ebx + 0x90], edx
mov esi, dword [ebp + 0xc]
sete cl
cdq
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x94]
add ecx, eax
mov edi, ecx
xor edx, edx
jmp 0x41289b
cmp dword [ebx + 0x90], edx
je 0x412895
mov edi, dword [esi]
sub edi, dword [ebx + 0x94]
jmp 0x41289b
mov edi, dword [ebx + 0x94]
cmp dword [ebx + 0x80], edx
je 0x4128ca
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [ebx + 0x84], edx
cdq
sete cl
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x88]
add ecx, eax
xor edx, edx
jmp 0x4128e3
cmp dword [ebx + 0x84], edx
je 0x4128dd
mov ecx, dword [esi + 4]
sub ecx, dword [ebx + 0x88]
jmp 0x4128e3
mov ecx, dword [ebx + 0x88]
cmp dword [ebx + 0x98], edx
je 0x412915
xor eax, eax
cmp dword [ebx + 0x9c], edx
sete al
lea eax, [eax + eax - 1]
imul eax, dword [ebx + 0xa0]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, edx
jmp 0x41292e
cmp dword [ebx + 0x9c], edx
je 0x412928
mov eax, dword [esi + 4]
sub eax, dword [ebx + 0xa0]
jmp 0x41292e
mov eax, dword [ebx + 0xa0]
sub edi, dword [esp + 0x58]
sub eax, ecx
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x412ee0
mov ecx, dword [ebx + 0xe0]
cmp ecx, 0xffffffff
je 0x412966
lea eax, [ebx + 0xe4]
cmp dword [eax], 0xffffffff
je 0x412966
test ecx, ecx
jl 0x41295a
mov dword [esi], ecx
mov eax, dword [eax]
test eax, eax
jl 0x412ee0
jmp 0x412936
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x20], eax
and dword [esp + 0x74], 0
and dword [esp + 0x10], 0
mov byte [esp + 0x74], 1
push dword [ebx + 0x50]
lea esi, [ebx + 0x18]
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00410876
pop ecx
push dword [esp + 0x20]
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [ebp + 8], 0
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
je 0x4129ca
mov eax, dword [edi]
add eax, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 4]
add eax, dword [esp + 0x5c]
mov dword [esp + 0x64], eax
push 0
mov esi, ebx
call fcn.00411aab
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4129fe
mov esi, dword [esi + 0xc]
test esi, esi
je 0x4129fe
push esi
call fcn.004114a3
mov esi, eax
test esi, esi
pop ecx
je 0x4129fe
push 0
call fcn.00411aab
test eax, eax
mov dword [esp + 0x14], eax
je 0x4129db
mov eax, dword [ebx + 0x38]
mov esi, dword [esp + 0x18]
and eax, 1
cmp al, 1
jne 0x412a74
cmp word [esi + 0x36], 0
je 0x412a20
push ebx
call fcn.004118bb
push eax
movzx eax, word [esi + 0x36]
jmp 0x412a68
mov eax, ebx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x412a74
push eax
call fcn.004114a3
test eax, eax
pop ecx
mov dword [esp + 0x1c], eax
je 0x412a74
push dword [eax + 0x50]
call fcn.00410876
cmp word [eax + 0x36], 0
mov eax, dword [esp + 0x20]
pop ecx
je 0x412a22
push dword [eax + 0x50]
call fcn.00410876
pop ecx
push ebx
mov dword [esp + 0x20], eax
call fcn.004118bb
push eax
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0x36]
push eax
call fcn.0040f436
pop ecx
mov dword [esp + 0x18], eax
pop ecx
cmp dword [esp + 0x14], 0
jne 0x412a8f
push ebx
call fcn.004118bb
push eax
push 0
call fcn.0040f436
pop ecx
pop ecx
mov dword [esp + 0x14], eax
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x40]
neg eax
push eax
neg ecx
push ecx
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x28]
and eax, 0xfffffff0
test al, 0x10
je 0x412aca
mov dword [esp + 0x64], 0x7fff
mov ecx, dword [ebx + 0x2c]
mov ecx, dword [ecx - 0xc]
test ecx, ecx
je 0x412e13
cmp dword [esi + 0x5c], 0
je 0x412d4f
lea eax, [esp + 0x48]
xor edi, edi
push eax
push edi
push edi
mov dword [esp + 0x54], edi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x4c], eax
push dword [esp + 0x10]
lea esi, [esp + 0x54]
call fcn.0040d688
mov byte [esp + 0x74], 3
push dword [esp + 0x14]
lea eax, [esp + 0x18]
push dword [esp + 0x14]
push eax
call fcn.0040fa0c
mov byte [esp + 0x74], 4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
push dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
fild dword [esp + 0x20]
sub eax, dword [esp + 0x60]
mov dword [esp + 0x20], eax
fstp dword [esp + 0x2c]
fild dword [esp + 0x20]
fstp dword [esp + 0x30]
call fcn.004114a3
pop ecx
mov ecx, eax
cmp ecx, edi
je 0x412b99
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.004118e0
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x1c]
sub eax, dword [esp + 0x34]
fstp dword [esp + 0x28]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp dword [esp + 0x2c]
mov eax, dword [ebx + 0xe0]
cmp eax, edi
mov dword [esp + 0x1c], eax
jl 0x412bad
fild dword [esp + 0x1c]
jmp 0x412bba
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x412bbe
fild dword [esp + 0x40]
fstp dword [esp + 0x28]
mov eax, dword [ebx + 0xe4]
cmp eax, edi
mov dword [esp + 0x1c], eax
jl 0x412bd2
fild dword [esp + 0x1c]
jmp 0x412bdf
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x412be3
fild dword [esp + 0x44]
fstp dword [esp + 0x2c]
fild dword [ebx + 0xe8]
fstp dword [esp + 0x1c]
fld dword [esp + 0x28]
fld dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 5
jnp 0x412c06
fld dword [esp + 0x1c]
fstp dword [esp + 0x28]
fild dword [ebx + 0xf0]
fstp dword [esp + 0x1c]
fld dword [esp + 0x2c]
fld dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 5
jnp 0x412c29
fld dword [esp + 0x1c]
fstp dword [esp + 0x2c]
fild dword [ebx + 0xec]
fstp dword [esp + 0x1c]
fld dword [esp + 0x28]
fld dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 5
jp 0x412c4c
fld dword [esp + 0x1c]
fstp dword [esp + 0x28]
fild dword [ebx + 0xf4]
fstp dword [esp + 0x1c]
fld dword [esp + 0x2c]
fld dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 5
jp 0x412c6f
fld dword [esp + 0x1c]
fstp dword [esp + 0x2c]
push edi
push dword [esp + 0x4c]
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, edi
je 0x412c81
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x2c]
fldz
push dword [eax - 0xc]
fst dword [esp + 0x38]
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x34]
push eax
lea eax, [esp + 0x58]
push eax
lea edi, [esp + 0x3c]
lea ecx, [esp + 0x54]
lea eax, [esp + 0x34]
call fcn.0040d7e6
fld dword [esp + 0x30]
fld dword [esp + 0x30]
call fcn.004a7610
mov dword [esp + 0x1c], eax
fisub dword [esp + 0x1c]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld1
jp 0x412cda
fld dword [esp + 0x30]
fadd st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.004a7610
mov dword [esp + 0x1c], eax
fisub dword [esp + 0x1c]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x412d04
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
jmp 0x412d06
fstp st(0)
fild dword [esp + 0x58]
fadd dword [esp + 0x30]
call fcn.004a7610
fild dword [esp + 0x5c]
mov dword [esp + 0x60], eax
fadd dword [esp + 0x34]
call fcn.004a7610
lea edi, [esp + 0x14]
mov dword [esp + 0x64], eax
call fcn.0040fadf
push dword [esp + 0x50]
call sub.gdiplus.dll_GdipDeleteGraphics
push dword [esp + 0x48]
call sub.gdiplus.dll_GdipDeleteStringFormat
mov edi, dword [ebp + 0xc]
mov esi, dword [esp + 0x18]
jmp 0x412e23
mov ecx, dword [ebx + 0xe0]
test ecx, ecx
mov edx, dword [esp + 0x58]
jl 0x412d62
lea edi, [ecx + edx]
jmp 0x412d75
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x412d71
mov ecx, dword [esp + 0x40]
jmp 0x412d5d
mov edi, dword [esp + 0x60]
mov esi, dword [ebx + 0xe4]
test esi, esi
mov ecx, dword [esp + 0x5c]
jge 0x412d8c
cmp esi, 0xfffffffe
jne 0x412d92
mov esi, dword [esp + 0x44]
add esi, ecx
mov dword [esp + 0x64], esi
mov esi, dword [ebx + 0xe8]
sub edi, edx
cmp edi, esi
jle 0x412da0
mov esi, edi
mov edi, dword [esp + 0x64]
add esi, edx
mov dword [esp + 0x60], esi
mov esi, dword [ebx + 0xf0]
sub edi, ecx
cmp edi, esi
jle 0x412db8
mov esi, edi
mov edi, dword [esp + 0x60]
add esi, ecx
mov dword [esp + 0x64], esi
mov esi, dword [ebx + 0xec]
sub edi, edx
cmp edi, esi
jg 0x412dd0
mov esi, edi
add esi, edx
mov edx, dword [ebx + 0xf4]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x64]
sub esi, ecx
cmp esi, edx
jg 0x412de8
mov edx, esi
or eax, 0x400
push eax
add edx, ecx
mov ecx, dword [ebx + 0x2c]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x6c], edx
push dword [ecx - 0xc]
push ecx
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_DrawTextW]
mov esi, dword [esp + 0x18]
mov edi, dword [ebp + 0xc]
jmp 0x412e23
mov eax, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x3c]
add eax, eax
sub eax, dword [esp + 0x58]
add eax, dword [esp + 0x60]
mov dword [edi], eax
mov eax, dword [esi + 0x40]
add eax, eax
sub eax, dword [esp + 0x5c]
add eax, dword [esp + 0x64]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0xe0]
test eax, eax
jge 0x412e59
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x412e5b
mov eax, dword [esp + 0x40]
mov dword [edi], eax
mov eax, dword [ebx + 0xe4]
test eax, eax
jge 0x412e6e
cmp eax, 0xfffffffe
jne 0x412e71
mov eax, dword [esp + 0x44]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0xe8]
mov edx, dword [edi]
cmp edx, eax
jg 0x412e7f
mov edx, eax
mov ecx, dword [edi + 4]
mov dword [edi], edx
mov eax, dword [ebx + 0xf0]
cmp ecx, eax
jle 0x412e90
mov eax, ecx
mov dword [edi + 4], eax
mov ecx, dword [ebx + 0xec]
cmp edx, ecx
jg 0x412e9f
mov ecx, edx
mov dword [edi], ecx
mov ebx, dword [ebx + 0xf4]
cmp eax, ebx
jle 0x412ead
mov eax, ebx
push dword [esp + 0x24]
mov dword [edi + 4], eax
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x10], 0
je 0x412ee0
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8