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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48cd59
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4ab1a4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x70], 4
mov dword [esp + 0x44], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x48], eax
jne 0x41a19c
xor edi, edi
cmp dword [ebx + 0x74], edi
je 0x41a09e
mov eax, dword [esi]
xor ecx, ecx
cmp dword [ebx + 0x78], edi
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 + 0x5c], ecx
jmp 0x41a0b1
cmp dword [ebx + 0x78], edi
je 0x41a0aa
mov eax, dword [esi]
sub eax, dword [ebx + 0x7c]
jmp 0x41a0ad
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x5c], eax
cmp dword [ebx + 0x8c], edi
je 0x41a0df
mov eax, dword [esi]
mov esi, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [ebx + 0x90], edi
cdq
sete cl
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x94]
add ecx, eax
mov edi, ecx
jmp 0x41a0f7
cmp dword [ebx + 0x90], edi
je 0x41a0f1
mov edi, dword [esi]
sub edi, dword [ebx + 0x94]
jmp 0x41a0f7
mov edi, dword [ebx + 0x94]
xor eax, eax
cmp dword [ebx + 0x80], eax
je 0x41a128
xor ecx, ecx
cmp dword [ebx + 0x84], eax
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0x10]
sete cl
cdq
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x88]
add ecx, eax
xor eax, eax
jmp 0x41a141
cmp dword [ebx + 0x84], eax
je 0x41a13b
mov ecx, dword [esi + 4]
sub ecx, dword [ebx + 0x88]
jmp 0x41a141
mov ecx, dword [ebx + 0x88]
cmp dword [ebx + 0x98], eax
je 0x41a173
xor edx, edx
cmp dword [ebx + 0x9c], eax
mov eax, dword [esi + 4]
sete dl
lea edx, [edx + edx - 1]
imul edx, dword [ebx + 0xa0]
mov dword [esp + 0x24], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
add eax, edx
jmp 0x41a18c
cmp dword [ebx + 0x9c], eax
je 0x41a186
mov eax, dword [esi + 4]
sub eax, dword [ebx + 0xa0]
jmp 0x41a18c
mov eax, dword [ebx + 0xa0]
sub edi, dword [esp + 0x5c]
sub eax, ecx
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x41a71f
mov ecx, dword [ebx + 0xe0]
cmp ecx, 0xffffffff
je 0x41a1c4
lea eax, [ebx + 0xe4]
cmp dword [eax], 0xffffffff
je 0x41a1c4
test ecx, ecx
jl 0x41a1b8
mov dword [esi], ecx
mov eax, dword [eax]
test eax, eax
jl 0x41a71f
jmp 0x41a194
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x24], eax
and dword [esp + 0x78], 0
and dword [esp + 0x14], 0
mov byte [esp + 0x78], 1
mov ecx, 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.0041609f
push dword [esp + 0x24]
mov edi, eax
mov dword [esp + 0x24], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x14], eax
je 0x41a229
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [esp + 0x5c]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x60]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
push 0
mov esi, ebx
call fcn.00417130
test eax, eax
mov dword [esp + 0x18], eax
jne 0x41a25d
mov esi, dword [esi + 0xc]
test esi, esi
je 0x41a25d
push esi
call fcn.00414108
mov esi, eax
test esi, esi
pop ecx
je 0x41a25d
push 0
call fcn.00417130
test eax, eax
mov dword [esp + 0x18], eax
je 0x41a23a
mov eax, dword [ebx + 0x38]
and eax, 1
cmp al, 1
jne 0x41a2c1
cmp word [edi + 0x2e], 0
je 0x41a27b
push ebx
call fcn.004183f6
push eax
movzx eax, word [edi + 0x2e]
jmp 0x41a2b5
mov esi, ebx
mov esi, dword [esi + 0xc]
test esi, esi
je 0x41a2c1
push esi
call fcn.00414108
mov esi, eax
test esi, esi
pop ecx
je 0x41a2c1
mov ecx, dword [esi + 0x50]
call fcn.0041609f
cmp word [eax + 0x2e], 0
je 0x41a27d
mov ecx, dword [esi + 0x50]
call fcn.0041609f
push ebx
mov esi, eax
call fcn.004183f6
push eax
movzx eax, word [esi + 0x2e]
push eax
call fcn.00437e93
pop ecx
mov dword [esp + 0x1c], eax
pop ecx
cmp dword [esp + 0x18], 0
jne 0x41a2dc
push ebx
call fcn.004183f6
push eax
push 0
call fcn.00437e93
pop ecx
pop ecx
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x38]
neg eax
push eax
neg ecx
push ecx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi + 0x20]
and eax, 0xfffffff0
test al, 0x10
je 0x41a317
mov dword [esp + 0x68], 0x7fff
mov ecx, dword [ebx + 0x2c]
mov ecx, dword [ecx - 0xc]
test ecx, ecx
je 0x41a64f
cmp dword [edi + 0x54], 0
je 0x41a58f
xor eax, eax
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
mov dword [esp + 0x58], eax
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x50], eax
push dword [esp + 0x14]
lea esi, [esp + 0x58]
call fcn.00414c41
push dword [esp + 0x18]
mov byte [esp + 0x7c], 3
push dword [esp + 0x18]
lea ebx, [esp + 0x24]
call fcn.0041841b
mov esi, dword [ebp + 8]
mov byte [esp + 0x78], 4
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
push dword [esi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
fild dword [esp + 0x1c]
sub eax, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x30]
fild dword [esp + 0x1c]
fstp dword [esp + 0x34]
call fcn.00414108
pop ecx
mov ecx, eax
test ecx, ecx
je 0x41a3d8
lea eax, [esp + 0x34]
call fcn.004138c4
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
fild dword [esp + 0x18]
sub eax, dword [esp + 0x38]
fstp dword [esp + 0x2c]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x30]
mov eax, dword [esi + 0xe0]
test eax, eax
mov dword [esp + 0x18], eax
jl 0x41a3ec
fild dword [esp + 0x18]
jmp 0x41a3f9
cmp dword [esi + 0xec], 0xfffffffe
jne 0x41a3fd
fild dword [esp + 0x44]
fstp dword [esp + 0x2c]
mov eax, dword [esi + 0xe4]
test eax, eax
mov dword [esp + 0x18], eax
jl 0x41a411
fild dword [esp + 0x18]
jmp 0x41a41e
cmp dword [esi + 0xec], 0xfffffffe
jne 0x41a422
fild dword [esp + 0x48]
fstp dword [esp + 0x30]
fild dword [esi + 0xe8]
fstp dword [esp + 0x18]
fld dword [esp + 0x2c]
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 5
jnp 0x41a445
fld dword [esp + 0x18]
fstp dword [esp + 0x2c]
fild dword [esi + 0xf0]
fstp dword [esp + 0x18]
fld dword [esp + 0x30]
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 5
jnp 0x41a468
fld dword [esp + 0x18]
fstp dword [esp + 0x30]
fild dword [esi + 0xec]
fstp dword [esp + 0x18]
fld dword [esp + 0x2c]
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 5
jp 0x41a48b
fld dword [esp + 0x18]
fstp dword [esp + 0x2c]
fild dword [esi + 0xf4]
fstp dword [esp + 0x18]
fld dword [esp + 0x30]
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 5
jp 0x41a4ae
fld dword [esp + 0x18]
fstp dword [esp + 0x30]
push 0
push dword [esp + 0x50]
call sub.gdiplus.dll_GdipSetStringFormatAlign
test eax, eax
je 0x41a4c1
mov dword [esp + 0x50], eax
mov esi, dword [esi + 0x2c]
fldz
push dword [esi - 0xc]
fst dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
fstp dword [esp + 0x38]
push esi
lea eax, [esp + 0x5c]
push eax
lea edi, [esp + 0x40]
lea ecx, [esp + 0x58]
lea eax, [esp + 0x38]
call fcn.0041a736
fld dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.00486fe0
mov dword [esp + 0x18], eax
fisub dword [esp + 0x18]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld1
jp 0x41a51a
fld dword [esp + 0x34]
fadd st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fld dword [esp + 0x38]
call fcn.00486fe0
mov dword [esp + 0x18], eax
fisub dword [esp + 0x18]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41a544
fadd dword [esp + 0x38]
fstp dword [esp + 0x38]
jmp 0x41a546
fstp st(0)
fild dword [esp + 0x5c]
fadd dword [esp + 0x34]
call fcn.00486fe0
fild dword [esp + 0x60]
mov dword [esp + 0x64], eax
fadd dword [esp + 0x38]
call fcn.00486fe0
lea edi, [esp + 0x1c]
mov dword [esp + 0x68], eax
call fcn.004185d5
push dword [esp + 0x54]
call sub.gdiplus.dll_GdipDeleteGraphics
push dword [esp + 0x4c]
call sub.gdiplus.dll_GdipDeleteStringFormat
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x20]
jmp 0x41a65f
mov ecx, dword [ebx + 0xe0]
test ecx, ecx
mov edx, dword [esp + 0x5c]
jl 0x41a5a2
lea edi, [ecx + edx]
jmp 0x41a5b5
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x41a5b1
mov ecx, dword [esp + 0x44]
jmp 0x41a59d
mov edi, dword [esp + 0x64]
mov esi, dword [ebx + 0xe4]
test esi, esi
mov ecx, dword [esp + 0x60]
jge 0x41a5cc
cmp esi, 0xfffffffe
jne 0x41a5d2
mov esi, dword [esp + 0x48]
add esi, ecx
mov dword [esp + 0x68], esi
mov esi, dword [ebx + 0xe8]
sub edi, edx
cmp edi, esi
jle 0x41a5e0
mov esi, edi
mov edi, dword [esp + 0x68]
add esi, edx
mov dword [esp + 0x64], esi
mov esi, dword [ebx + 0xf0]
sub edi, ecx
cmp edi, esi
jle 0x41a5f8
mov esi, edi
mov edi, dword [esp + 0x64]
add esi, ecx
mov dword [esp + 0x68], esi
mov esi, dword [ebx + 0xec]
sub edi, edx
cmp edi, esi
jg 0x41a610
mov esi, edi
add esi, edx
mov edx, dword [ebx + 0xf4]
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x68]
sub esi, ecx
cmp esi, edx
jg 0x41a628
mov edx, esi
or eax, 0x400
push eax
add edx, ecx
mov ecx, dword [ebx + 0x2c]
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x70], edx
push dword [ecx - 0xc]
push ecx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x41a586
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], eax
mov ecx, dword [edi + 0x34]
mov eax, dword [ebp + 0x10]
add ecx, ecx
sub ecx, dword [esp + 0x5c]
add ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov ecx, dword [edi + 0x38]
add ecx, ecx
sub ecx, dword [esp + 0x60]
add ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0xe0]
test ecx, ecx
jge 0x41a698
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x41a69a
mov ecx, dword [esp + 0x44]
mov dword [eax], ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
jge 0x41a6ad
cmp ecx, 0xfffffffe
jne 0x41a6b0
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0xe8]
mov esi, dword [eax]
cmp esi, ecx
jg 0x41a6be
mov esi, ecx
mov edx, dword [eax + 4]
mov dword [eax], esi
mov ecx, dword [ebx + 0xf0]
cmp edx, ecx
jle 0x41a6cf
mov ecx, edx
mov dword [eax + 4], ecx
mov edx, dword [ebx + 0xec]
cmp esi, edx
jg 0x41a6de
mov edx, esi
mov dword [eax], edx
mov ebx, dword [ebx + 0xf4]
cmp ecx, ebx
jle 0x41a6ec
mov ecx, ebx
push dword [esp + 0x28]
mov dword [eax + 4], ecx
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x14], 0
je 0x41a71f
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc