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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ba011
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4f1020]
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 0x41dc37
xor edi, edi
cmp dword [ebx + 0x74], edi
je 0x41db39
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 0x41db4c
cmp dword [ebx + 0x78], edi
je 0x41db45
mov eax, dword [esi]
sub eax, dword [ebx + 0x7c]
jmp 0x41db48
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x5c], eax
cmp dword [ebx + 0x8c], edi
je 0x41db7a
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 0x41db92
cmp dword [ebx + 0x90], edi
je 0x41db8c
mov edi, dword [esi]
sub edi, dword [ebx + 0x94]
jmp 0x41db92
mov edi, dword [ebx + 0x94]
xor eax, eax
cmp dword [ebx + 0x80], eax
je 0x41dbc3
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 0x41dbdc
cmp dword [ebx + 0x84], eax
je 0x41dbd6
mov ecx, dword [esi + 4]
sub ecx, dword [ebx + 0x88]
jmp 0x41dbdc
mov ecx, dword [ebx + 0x88]
cmp dword [ebx + 0x98], eax
je 0x41dc0e
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 0x41dc27
cmp dword [ebx + 0x9c], eax
je 0x41dc21
mov eax, dword [esi + 4]
sub eax, dword [ebx + 0xa0]
jmp 0x41dc27
mov eax, dword [ebx + 0xa0]
sub edi, dword [esp + 0x5c]
sub eax, ecx
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x41e1bd
mov ecx, dword [ebx + 0xe0]
cmp ecx, 0xffffffff
je 0x41dc5f
lea eax, [ebx + 0xe4]
cmp dword [eax], 0xffffffff
je 0x41dc5f
test ecx, ecx
jl 0x41dc53
mov dword [esi], ecx
mov eax, dword [eax]
test eax, eax
jl 0x41e1bd
jmp 0x41dc2f
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
push dword [ebx + 0x50]
lea esi, [ebx + 0x18]
lea edi, [esp + 0x60]
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.0041a15d
pop ecx
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 0x41dcc5
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.0041ce19
test eax, eax
mov dword [esp + 0x18], eax
jne 0x41dcf9
mov esi, dword [esi + 0xc]
test esi, esi
je 0x41dcf9
push esi
call fcn.0041c863
mov esi, eax
test esi, esi
pop ecx
je 0x41dcf9
push 0
call fcn.0041ce19
test eax, eax
mov dword [esp + 0x18], eax
je 0x41dcd6
mov eax, dword [ebx + 0x38]
and eax, 1
cmp al, 1
jne 0x41dd5f
cmp word [edi + 0x2e], 0
je 0x41dd17
push ebx
call fcn.0041cc5d
push eax
movzx eax, word [edi + 0x2e]
jmp 0x41dd53
mov esi, ebx
mov esi, dword [esi + 0xc]
test esi, esi
je 0x41dd5f
push esi
call fcn.0041c863
mov esi, eax
test esi, esi
pop ecx
je 0x41dd5f
push dword [esi + 0x50]
call fcn.0041a15d
cmp word [eax + 0x2e], 0
pop ecx
je 0x41dd19
push dword [esi + 0x50]
call fcn.0041a15d
pop ecx
push ebx
mov esi, eax
call fcn.0041cc5d
push eax
movzx eax, word [esi + 0x2e]
push eax
call fcn.0041a20c
pop ecx
mov dword [esp + 0x1c], eax
pop ecx
cmp dword [esp + 0x18], 0
jne 0x41dd7a
push ebx
call fcn.0041cc5d
push eax
push 0
call fcn.0041a20c
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 0x41ddb5
mov dword [esp + 0x68], 0x7fff
mov ecx, dword [ebx + 0x2c]
mov ecx, dword [ecx - 0xc]
test ecx, ecx
je 0x41e0ed
cmp dword [edi + 0x54], 0
je 0x41e02d
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.0040605a
push dword [esp + 0x18]
mov byte [esp + 0x7c], 3
push dword [esp + 0x18]
lea ebx, [esp + 0x24]
call fcn.0041b873
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.0041c863
pop ecx
mov ecx, eax
test ecx, ecx
je 0x41de76
lea eax, [esp + 0x34]
call fcn.0040e858
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 0x41de8a
fild dword [esp + 0x18]
jmp 0x41de97
cmp dword [esi + 0xec], 0xfffffffe
jne 0x41de9b
fild dword [esp + 0x44]
fstp dword [esp + 0x2c]
mov eax, dword [esi + 0xe4]
test eax, eax
mov dword [esp + 0x18], eax
jl 0x41deaf
fild dword [esp + 0x18]
jmp 0x41debc
cmp dword [esi + 0xec], 0xfffffffe
jne 0x41dec0
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 0x41dee3
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 0x41df06
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 0x41df29
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 0x41df4c
fld dword [esp + 0x18]
fstp dword [esp + 0x30]
push 0
push dword [esp + 0x50]
call sub.gdiplus.dll_GdipSetStringFormatAlign
test eax, eax
je 0x41df5f
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.0041b6c0
fld dword [esp + 0x34]
fld dword [esp + 0x34]
call fcn.004afb40
mov dword [esp + 0x18], eax
fisub dword [esp + 0x18]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld1
jp 0x41dfb8
fld dword [esp + 0x34]
fadd st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fld dword [esp + 0x38]
call fcn.004afb40
mov dword [esp + 0x18], eax
fisub dword [esp + 0x18]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41dfe2
fadd dword [esp + 0x38]
fstp dword [esp + 0x38]
jmp 0x41dfe4
fstp st(0)
fild dword [esp + 0x5c]
fadd dword [esp + 0x34]
call fcn.004afb40
fild dword [esp + 0x60]
mov dword [esp + 0x64], eax
fadd dword [esp + 0x38]
call fcn.004afb40
lea edi, [esp + 0x1c]
mov dword [esp + 0x68], eax
call fcn.0041b93b
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 0x41e0fd
mov ecx, dword [ebx + 0xe0]
test ecx, ecx
mov edx, dword [esp + 0x5c]
jl 0x41e040
lea edi, [ecx + edx]
jmp 0x41e053
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x41e04f
mov ecx, dword [esp + 0x44]
jmp 0x41e03b
mov edi, dword [esp + 0x64]
mov esi, dword [ebx + 0xe4]
test esi, esi
mov ecx, dword [esp + 0x60]
jge 0x41e06a
cmp esi, 0xfffffffe
jne 0x41e070
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 0x41e07e
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 0x41e096
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 0x41e0ae
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 0x41e0c6
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 0x41e024
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 0x41e136
cmp dword [ebx + 0xec], 0xfffffffe
jne 0x41e138
mov ecx, dword [esp + 0x44]
mov dword [eax], ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
jge 0x41e14b
cmp ecx, 0xfffffffe
jne 0x41e14e
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0xe8]
mov esi, dword [eax]
cmp esi, ecx
jg 0x41e15c
mov esi, ecx
mov edx, dword [eax + 4]
mov dword [eax], esi
mov ecx, dword [ebx + 0xf0]
cmp edx, ecx
jle 0x41e16d
mov ecx, edx
mov dword [eax + 4], ecx
mov edx, dword [ebx + 0xec]
cmp esi, edx
jg 0x41e17c
mov edx, esi
mov dword [eax], edx
mov ebx, dword [ebx + 0xf4]
cmp ecx, ebx
jle 0x41e18a
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 0x41e1bd
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