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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fcd03
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x6c], 4
jne 0x40a516
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp dword [ebx + 0x70], edi
je 0x40a41e
mov eax, dword [esi]
xor ecx, ecx
cmp dword [ebx + 0x74], edi
cdq
sete cl
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x78]
add ecx, eax
mov dword [esp + 0x54], ecx
jmp 0x40a434
cmp dword [ebx + 0x74], edi
je 0x40a42d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub eax, dword [ebx + 0x78]
jmp 0x40a430
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x54], eax
cmp dword [ebx + 0x88], edi
je 0x40a45f
mov eax, dword [esi]
xor ecx, ecx
cmp dword [ebx + 0x8c], edi
cdq
sete cl
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x90]
add ecx, eax
mov edi, ecx
jmp 0x40a477
cmp dword [ebx + 0x8c], edi
je 0x40a471
mov edi, dword [esi]
sub edi, dword [ebx + 0x90]
jmp 0x40a477
mov edi, dword [ebx + 0x90]
xor eax, eax
cmp dword [ebx + 0x7c], eax
je 0x40a4a2
xor ecx, ecx
cmp dword [ebx + 0x80], eax
mov eax, dword [esi + 4]
sete cl
cdq
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [ebx + 0x84]
add ecx, eax
xor eax, eax
jmp 0x40a4bb
cmp dword [ebx + 0x80], eax
je 0x40a4b5
mov ecx, dword [esi + 4]
sub ecx, dword [ebx + 0x84]
jmp 0x40a4bb
mov ecx, dword [ebx + 0x84]
cmp dword [ebx + 0x94], eax
je 0x40a4ed
xor edx, edx
cmp dword [ebx + 0x98], eax
mov eax, dword [esi + 4]
sete dl
lea edx, [edx + edx - 1]
imul edx, dword [ebx + 0x9c]
mov dword [esp + 0x1c], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add eax, edx
jmp 0x40a506
cmp dword [ebx + 0x98], eax
je 0x40a500
mov eax, dword [esi + 4]
sub eax, dword [ebx + 0x9c]
jmp 0x40a506
mov eax, dword [ebx + 0x9c]
sub edi, dword [esp + 0x54]
sub eax, ecx
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x40a887
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x1c], eax
and dword [esp + 0x70], 0
and dword [esp + 0x14], 0
mov byte [esp + 0x70], 1
push dword [ebx + 0x4c]
lea esi, [ebx + 0x14]
lea edi, [esp + 0x58]
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.00407e9b
pop ecx
push dword [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x28], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x14], eax
je 0x40a57c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [esp + 0x54]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x58]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
push 0
mov esi, ebx
call fcn.00408abc
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40a5b0
mov esi, dword [esi + 8]
test esi, esi
je 0x40a5b0
push esi
call fcn.00405678
mov esi, eax
test esi, esi
pop ecx
je 0x40a5b0
push 0
call fcn.00408abc
test eax, eax
mov dword [esp + 0x18], eax
je 0x40a58d
mov eax, dword [ebx + 0x34]
and eax, 1
cmp al, 1
jne 0x40a616
cmp word [edi + 0x2a], 0
je 0x40a5ce
push ebx
call fcn.00406ba6
push eax
movzx eax, word [edi + 0x2a]
jmp 0x40a60a
mov esi, ebx
mov esi, dword [esi + 8]
test esi, esi
je 0x40a616
push esi
call fcn.00405678
mov esi, eax
test esi, esi
pop ecx
je 0x40a616
push dword [esi + 0x4c]
call fcn.00407e9b
cmp word [eax + 0x2a], 0
pop ecx
je 0x40a5d0
push dword [esi + 0x4c]
call fcn.00407e9b
pop ecx
push ebx
mov esi, eax
call fcn.00406ba6
push eax
movzx eax, word [esi + 0x2a]
push eax
call fcn.00408b4f
pop ecx
mov dword [esp + 0x1c], eax
pop ecx
cmp dword [esp + 0x18], 0
jne 0x40a631
push ebx
call fcn.00406ba6
push eax
push 0
call fcn.00408b4f
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 + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x30]
neg eax
push eax
neg ecx
push ecx
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi + 0x1c]
and eax, 0xfffffff0
test al, 0x10
je 0x40a66c
mov dword [esp + 0x60], 0x7fff
mov ecx, dword [ebx + 0x28]
xor esi, esi
cmp dword [ecx - 0xc], esi
je 0x40a824
cmp dword [edi + 0x4c], esi
je 0x40a807
lea eax, [esp + 0x3c]
push eax
push esi
push esi
mov dword [esp + 0x48], esi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x40], eax
push dword [esp + 0x14]
lea esi, [esp + 0x50]
call fcn.004045cb
mov byte [esp + 0x70], 3
push dword [esp + 0x18]
lea ebx, [esp + 0x1c]
push dword [esp + 0x18]
call fcn.0040a05b
mov esi, dword [ebp + 8]
mov byte [esp + 0x70], 4
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
push dword [esi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
fild dword [esp + 0x24]
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
fstp dword [esp + 0x48]
fild dword [esp + 0x24]
fstp dword [esp + 0x4c]
call fcn.00405678
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40a72a
lea eax, [esp + 0x2c]
call fcn.00405b2f
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
fild dword [esp + 0x20]
sub eax, dword [esp + 0x30]
fstp dword [esp + 0x44]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fstp dword [esp + 0x48]
push 0
push dword [esp + 0x40]
call sub.gdiplus.dll_GdipSetStringFormatAlign
test eax, eax
je 0x40a73d
mov dword [esp + 0x40], eax
mov esi, dword [esi + 0x28]
fldz
push dword [esi - 0xc]
fst dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
fstp dword [esp + 0x30]
push esi
lea eax, [esp + 0x54]
push eax
lea edi, [esp + 0x38]
lea ecx, [esp + 0x48]
lea eax, [esp + 0x50]
call fcn.0040a8af
fld dword [esp + 0x2c]
fld dword [esp + 0x2c]
call fcn.004d0ca0
mov dword [esp + 0x20], eax
fisub dword [esp + 0x20]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld1
jp 0x40a796
fld dword [esp + 0x2c]
fadd st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fld dword [esp + 0x30]
call fcn.004d0ca0
mov dword [esp + 0x20], eax
fisub dword [esp + 0x20]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40a7c0
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
jmp 0x40a7c2
fstp st(0)
fild dword [esp + 0x54]
fadd dword [esp + 0x2c]
call fcn.004d0ca0
fild dword [esp + 0x58]
mov dword [esp + 0x5c], eax
fadd dword [esp + 0x30]
call fcn.004d0ca0
lea edi, [esp + 0x18]
mov dword [esp + 0x60], eax
call fcn.0040a215
push dword [esp + 0x4c]
call sub.gdiplus.dll_GdipDeleteGraphics
push dword [esp + 0x3c]
call sub.gdiplus.dll_GdipDeleteStringFormat
mov edi, dword [esp + 0x24]
xor esi, esi
jmp 0x40a834
or eax, 0x400
push eax
lea eax, [esp + 0x58]
push eax
mov ebx, ecx
push dword [ebx - 0xc]
push ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x40a834
mov eax, dword [esp + 0x54]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x2c]
push dword [esp + 0x28]
add eax, eax
push dword [esp + 0x18]
mov ecx, eax
sub ecx, dword [esp + 0x5c]
mov eax, dword [ebp + 0x10]
add ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov ecx, dword [edi + 0x30]
add ecx, ecx
sub ecx, dword [esp + 0x60]
add ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x14], esi
je 0x40a887
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc