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

Disassembly:
push 0xffffffffffffffff
push 0x4ae218
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x68], 4
jne 0x45feec
cmp dword [esi + 0x6c], 0
mov edi, dword [esp + 0x70]
je 0x45fde8
mov eax, dword [edi]
xor ebx, ebx
cmp dword [esi + 0x70], ebx
cdq
sete bl
sub eax, edx
sar eax, 1
lea ebx, [ebx + ebx - 1]
imul ebx, dword [esi + 0x74]
add ebx, eax
jmp 0x45fdf8
cmp dword [esi + 0x70], 0
je 0x45fdf5
mov ebx, dword [edi]
sub ebx, dword [esi + 0x74]
jmp 0x45fdf8
mov ebx, dword [esi + 0x74]
cmp dword [esi + 0x84], 0
mov dword [esp + 0x4c], ebx
je 0x45fe28
mov eax, dword [edi]
xor ecx, ecx
cmp dword [esi + 0x88], ecx
cdq
sete cl
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [esi + 0x8c]
add ecx, eax
mov ebp, ecx
jmp 0x45fe41
cmp dword [esi + 0x88], 0
je 0x45fe3b
mov ebp, dword [edi]
sub ebp, dword [esi + 0x8c]
jmp 0x45fe41
mov ebp, dword [esi + 0x8c]
cmp dword [esi + 0x78], 0
je 0x45fe66
mov eax, dword [edi + 4]
xor ecx, ecx
cmp dword [esi + 0x7c], ecx
cdq
sete cl
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [esi + 0x80]
add ecx, eax
jmp 0x45fe7d
cmp dword [esi + 0x7c], 0
je 0x45fe77
mov ecx, dword [edi + 4]
sub ecx, dword [esi + 0x80]
jmp 0x45fe7d
mov ecx, dword [esi + 0x80]
cmp dword [esi + 0x90], 0
je 0x45feb8
mov eax, dword [edi + 4]
xor ebx, ebx
cmp dword [esi + 0x94], ebx
cdq
sete bl
sub eax, edx
sar eax, 1
lea ebx, [ebx + ebx - 1]
imul ebx, dword [esi + 0x98]
add eax, ebx
mov ebx, dword [esp + 0x4c]
sub ebp, ebx
sub eax, ecx
mov dword [edi], ebp
mov dword [edi + 4], eax
jmp 0x460369
cmp dword [esi + 0x94], 0
je 0x45fed8
mov eax, dword [edi + 4]
sub eax, dword [esi + 0x98]
sub ebp, ebx
sub eax, ecx
mov dword [edi], ebp
mov dword [edi + 4], eax
jmp 0x460369
mov eax, dword [esi + 0x98]
sub ebp, ebx
sub eax, ecx
mov dword [edi], ebp
mov dword [edi + 4], eax
jmp 0x460369
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [esp + 0x20], edi
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x20]
push eax
mov byte [esp + 0x68], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
call fcn.0045cc50
add esp, 4
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [esp + 0x6c], ebx
mov dword [esp + 0x18], eax
je 0x45ff68
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
add ecx, dword [esp + 0x4c]
mov edx, dword [eax + 4]
add edx, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov eax, dword [esi + 0x58]
cmp eax, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jne 0x45ffe9
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x45ffe9
mov edi, esi
mov edi, dword [edi + 8]
cmp edi, ebx
je 0x45ffed
push 0x4e02e0
call ebp
call fcn.0041d5f0
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
push ecx
push edi
mov ecx, eax
call fcn.0040df30
push 0x4e02e0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
je 0x45ffed
mov edi, dword [edi + 4]
cmp edi, ebx
je 0x45ffed
cmp dword [edi + 0x58], ebx
jne 0x46000d
mov eax, dword [edi + 0x4c]
push eax
call fcn.0045cc50
add esp, 4
cmp dword [eax + 0x20], ebx
je 0x45ff82
mov edi, dword [edi + 0x4c]
push edi
call fcn.0045cc50
mov eax, dword [eax + 0x20]
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x34]
and ecx, 1
cmp cl, 1
jne 0x46007e
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
cmp eax, ebx
je 0x460016
mov dword [esp + 0x14], eax
jmp 0x46007e
mov edx, dword [edi + 0x58]
mov dword [esp + 0x14], edx
jmp 0x45ffed
mov edi, esi
mov edi, dword [edi + 8]
cmp edi, ebx
je 0x46007e
push 0x4e02e0
call ebp
call fcn.0041d5f0
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x2c]
push ecx
push edi
mov ecx, eax
call fcn.0040df30
push 0x4e02e0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
je 0x46007e
mov edi, dword [edi + 4]
cmp edi, ebx
je 0x46007e
mov eax, dword [edi + 0x4c]
push eax
call fcn.0045cc50
add esp, 4
cmp dword [eax + 0x24], ebx
je 0x460018
mov edi, dword [edi + 0x4c]
push edi
call fcn.0045cc50
mov edx, dword [eax + 0x24]
add esp, 4
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], ebx
jne 0x4600d8
call fcn.00415c30
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x2c]
push ecx
add eax, 0x60
push ebx
mov ecx, eax
call fcn.00410050
cmp eax, ebx
jne 0x4600d1
push ebx
push ebx
push ebx
push ebx
call fcn.00415c30
mov ecx, eax
call fcn.004102f0
mov edi, eax
cmp edi, ebx
je 0x4600d4
push ebx
call fcn.00415c30
mov ecx, eax
add ecx, 0x60
call fcn.00410930
mov dword [eax], edi
jmp 0x4600d4
mov edi, dword [eax + 4]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
call ebp
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x28]
mov ebx, eax
mov eax, dword [edi + 0x2c]
neg eax
push eax
neg ecx
push ecx
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi + 0x1c]
and eax, 0xfffffff0
test al, 0x10
je 0x460119
mov dword [esp + 0x58], 0x7fff
mov edx, dword [esi + 0x28]
cmp dword [edx - 0xc], 0
je 0x460311
cmp dword [edi + 0x48], 0
je 0x4602f2
lea eax, [esp + 0x24]
push eax
push 0
push 0
mov dword [esp + 0x30], 0
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x6c]
push ecx
push edi
mov dword [esp + 0x74], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 3
call fcn.0045f520
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x50]
mov eax, dword [esi + 8]
mov dword [esp + 0x6c], ecx
fild dword [esp + 0x6c]
mov dword [esp + 0x6c], edx
push eax
fstp dword [esp + 0x40]
mov byte [esp + 0x68], 4
fild dword [esp + 0x70]
fstp dword [esp + 0x44]
call fcn.0041d670
xor edi, edi
add esp, 4
cmp eax, edi
je 0x460204
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00417520
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov dword [esp + 0x6c], edx
fild dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
fstp dword [esp + 0x3c]
fild dword [esp + 0x6c]
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
push edi
push ecx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, edi
je 0x460217
mov dword [esp + 0x28], eax
mov esi, dword [esi + 0x28]
fldz
push edi
fst dword [esp + 0x34]
push edi
fstp dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esi - 0xc]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edi
push edx
push esi
lea ecx, [esp + 0x64]
call fcn.0044d160
fld dword [esp + 0x2c]
fld st(0)
fld st(1)
call fcn.0048e9d0
mov dword [esp + 0x6c], eax
fisub dword [esp + 0x6c]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld1
jp 0x46027a
fadd st(2), st(0)
fxch st(2)
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fxch st(2)
fld dword [esp + 0x30]
fld st(0)
fld st(1)
call fcn.0048e9d0
mov dword [esp + 0x6c], eax
fisub dword [esp + 0x6c]
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 0x41
jne 0x4602a6
faddp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
jmp 0x4602a8
fstp st(0)
fild dword [esp + 0x4c]
faddp st(2)
fxch st(1)
call fcn.0048e9d0
fiadd dword [esp + 0x50]
mov dword [esp + 0x54], eax
call fcn.0048e9d0
test edi, edi
mov dword [esp + 0x58], eax
je 0x4602d8
mov eax, dword [edi]
push eax
call sub.gdiplus.dll_GdipDeleteFont
push edi
call sub.gdiplus.dll_GdipFree
mov ecx, dword [esp + 0x44]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov edx, dword [esp + 0x24]
push edx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov edi, dword [esp + 0x1c]
jmp 0x460321
or eax, 0x400
push eax
mov esi, edx
mov ecx, dword [esi - 0xc]
lea eax, [esp + 0x50]
push eax
push ecx
push esi
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x460325
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0x28]
mov eax, dword [esp + 0x70]
add ecx, ecx
sub ecx, dword [esp + 0x4c]
push ebx
add ecx, dword [esp + 0x58]
push esi
mov dword [eax], ecx
mov edx, dword [edi + 0x2c]
add edx, edx
sub edx, dword [esp + 0x58]
add edx, dword [esp + 0x60]
mov dword [eax + 4], edx
call ebp
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x460369
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8