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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ab9f2
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 0x4125e0
xor edx, edx
cmp dword [ebx + 0x74], edx
je 0x4124e2
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 0x4124f5
cmp dword [ebx + 0x78], edx
je 0x4124ee
mov eax, dword [esi]
sub eax, dword [ebx + 0x7c]
jmp 0x4124f1
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x58], eax
cmp dword [ebx + 0x8c], edx
je 0x412525
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 0x41253d
cmp dword [ebx + 0x90], edx
je 0x412537
mov edi, dword [esi]
sub edi, dword [ebx + 0x94]
jmp 0x41253d
mov edi, dword [ebx + 0x94]
cmp dword [ebx + 0x80], edx
je 0x41256c
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 0x412585
cmp dword [ebx + 0x84], edx
je 0x41257f
mov ecx, dword [esi + 4]
sub ecx, dword [ebx + 0x88]
jmp 0x412585
mov ecx, dword [ebx + 0x88]
cmp dword [ebx + 0x98], edx
je 0x4125b7
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 0x4125d0
cmp dword [ebx + 0x9c], edx
je 0x4125ca
mov eax, dword [esi + 4]
sub eax, dword [ebx + 0xa0]
jmp 0x4125d0
mov eax, dword [ebx + 0xa0]
sub edi, dword [esp + 0x58]
sub eax, ecx
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x412b82
mov ecx, dword [ebx + 0xe0]
cmp ecx, 0xffffffff
je 0x412608
lea eax, [ebx + 0xe4]
cmp dword [eax], 0xffffffff
je 0x412608
test ecx, ecx
jl 0x4125fc
mov dword [esi], ecx
mov eax, dword [eax]
test eax, eax
jl 0x412b82
jmp 0x4125d8
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.0041053b
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 0x41266c
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.00411770
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4126a0
mov esi, dword [esi + 0xc]
test esi, esi
je 0x4126a0
push esi
call fcn.00411168
mov esi, eax
test esi, esi
pop ecx
je 0x4126a0
push 0
call fcn.00411770
test eax, eax
mov dword [esp + 0x14], eax
je 0x41267d
mov eax, dword [ebx + 0x38]
mov esi, dword [esp + 0x18]
and eax, 1
cmp al, 1
jne 0x412716
cmp word [esi + 0x36], 0
je 0x4126c2
push ebx
call fcn.00411580
push eax
movzx eax, word [esi + 0x36]
jmp 0x41270a
mov eax, ebx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x412716
push eax
call fcn.00411168
test eax, eax
pop ecx
mov dword [esp + 0x1c], eax
je 0x412716
push dword [eax + 0x50]
call fcn.0041053b
cmp word [eax + 0x36], 0
mov eax, dword [esp + 0x20]
pop ecx
je 0x4126c4
push dword [eax + 0x50]
call fcn.0041053b
pop ecx
push ebx
mov dword [esp + 0x20], eax
call fcn.00411580
push eax
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0x36]
push eax
call fcn.0040f0de
pop ecx
mov dword [esp + 0x18], eax
pop ecx
cmp dword [esp + 0x14], 0
jne 0x412731
push ebx
call fcn.00411580
push eax
push 0
call fcn.0040f0de
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 0x41276c
mov dword [esp + 0x64], 0x7fff
mov ecx, dword [ebx + 0x2c]
mov ecx, dword [ecx - 0xc]
test ecx, ecx
je 0x412ab5
cmp dword [esi + 0x5c], 0
je 0x4129f1
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.0040d330
mov byte [esp + 0x74], 3
push dword [esp + 0x14]
lea eax, [esp + 0x18]
push dword [esp + 0x14]
push eax
call fcn.0040f6b4
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.00411168
pop ecx
mov ecx, eax
cmp ecx, edi
je 0x41283b
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.004115a5
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 0x41284f
fild dword [esp + 0x1c]
jmp 0x41285c
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x412860
fild dword [esp + 0x40]
fstp dword [esp + 0x28]
mov eax, dword [ebx + 0xe4]
cmp eax, edi
mov dword [esp + 0x1c], eax
jl 0x412874
fild dword [esp + 0x1c]
jmp 0x412881
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x412885
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 0x4128a8
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 0x4128cb
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 0x4128ee
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 0x412911
fld dword [esp + 0x1c]
fstp dword [esp + 0x2c]
push edi
push dword [esp + 0x4c]
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, edi
je 0x412923
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.0040d48e
fld dword [esp + 0x30]
fld dword [esp + 0x30]
call fcn.004a5c50
mov dword [esp + 0x1c], eax
fisub dword [esp + 0x1c]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld1
jp 0x41297c
fld dword [esp + 0x30]
fadd st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.004a5c50
mov dword [esp + 0x1c], eax
fisub dword [esp + 0x1c]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4129a6
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
jmp 0x4129a8
fstp st(0)
fild dword [esp + 0x58]
fadd dword [esp + 0x30]
call fcn.004a5c50
fild dword [esp + 0x5c]
mov dword [esp + 0x60], eax
fadd dword [esp + 0x34]
call fcn.004a5c50
lea edi, [esp + 0x14]
mov dword [esp + 0x64], eax
call fcn.0040f787
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 0x412ac5
mov ecx, dword [ebx + 0xe0]
test ecx, ecx
mov edx, dword [esp + 0x58]
jl 0x412a04
lea edi, [ecx + edx]
jmp 0x412a17
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x412a13
mov ecx, dword [esp + 0x40]
jmp 0x4129ff
mov edi, dword [esp + 0x60]
mov esi, dword [ebx + 0xe4]
test esi, esi
mov ecx, dword [esp + 0x5c]
jge 0x412a2e
cmp esi, 0xfffffffe
jne 0x412a34
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 0x412a42
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 0x412a5a
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 0x412a72
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 0x412a8a
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 0x412ac5
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 0x412afb
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x412afd
mov eax, dword [esp + 0x40]
mov dword [edi], eax
mov eax, dword [ebx + 0xe4]
test eax, eax
jge 0x412b10
cmp eax, 0xfffffffe
jne 0x412b13
mov eax, dword [esp + 0x44]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0xe8]
mov edx, dword [edi]
cmp edx, eax
jg 0x412b21
mov edx, eax
mov ecx, dword [edi + 4]
mov dword [edi], edx
mov eax, dword [ebx + 0xf0]
cmp ecx, eax
jle 0x412b32
mov eax, ecx
mov dword [edi + 4], eax
mov ecx, dword [ebx + 0xec]
cmp edx, ecx
jg 0x412b41
mov ecx, edx
mov dword [edi], ecx
mov ebx, dword [ebx + 0xf4]
cmp eax, ebx
jle 0x412b4f
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 0x412b82
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