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

Disassembly:
push 0xffffffffffffffff
push 0x597abd
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x1cc]
mov eax, dword [ecx + 0x14]
sub eax, 1
je 0x51c900
sub eax, 3
jne 0x51c92b
mov eax, dword [ecx + 0x20]
add eax, 8
push 0xfde9
lea ecx, [esp + 0xbc]
push eax
lea eax, [esp + 0xbc]
mov dword [esp + 0xbc], ecx
call fcn.0047a110
xor edi, edi
lea edx, [esp + 0x50]
mov dword [esp + 0x1c0], edi
mov ecx, dword [esp + 0xb4]
push edx
call fcn.00481430
mov byte [esp + 0x1c0], 2
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0xb8]
cmp eax, ecx
je 0x51c4a2
push eax
call fcn.00566eaf
add esp, 4
mov eax, dword [esp + 0x50]
mov ecx, dword [eax - 0xc]
mov ebp, dword [esp + 0x1c8]
mov dword [esp + 0x24], eax
xor eax, eax
fldz
sub ecx, eax
mov esi, ecx
fst dword [esp + 0x2c]
cmp esi, edi
fstp dword [esp + 0x30]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x54], esi
jle 0x51c645
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
lea esi, [esp + 0xb0]
mov eax, ebp
call fcn.004a1ce0
mov byte [esp + 0x1c0], 4
mov ecx, dword [ebp]
mov eax, dword [eax]
push ecx
mov ecx, eax
lea ebx, [esp + 0x24]
call fcn.004a1ac0
lea ecx, [esp + 0x44]
push ecx
push edi
push edi
mov dword [esp + 0x50], edi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x48], eax
mov byte [esp + 0x1c0], 7
fldz
mov edx, dword [esp + 0x44]
fst dword [esp + 0x74]
fst dword [esp + 0x70]
push 1
fst dword [esp + 0x70]
push edx
fstp dword [esp + 0x70]
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, edi
je 0x51c55b
mov dword [esp + 0x48], eax
fldz
mov eax, dword [esp + 0x20]
cmp eax, edi
fst dword [esp + 0x9c]
fst dword [esp + 0xa0]
fst dword [esp + 0xa4]
fstp dword [esp + 0xa8]
je 0x51c585
mov eax, dword [eax]
jmp 0x51c587
xor eax, eax
mov esi, dword [esp + 0x1c]
push edi
push edi
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x20]
push edi
lea edx, [esp + 0xac]
push edx
push eax
mov eax, dword [esp + 0x3c]
push esi
push eax
push ecx
call sub.gdiplus.dll_GdipMeasureString
cmp eax, edi
je 0x51c5b4
mov dword [esp + 0x7c], eax
fld dword [esp + 0x70]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x4c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x74]
fstp dword [esp + 0x30]
call fcn.004a0d40
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x1c]
sub edx, dword [eax + 0x28]
mov ebx, dword [esp + 0x1d4]
fld dword [ebx]
mov dword [esp + 0x34], edx
fadd dword [esp + 0x2c]
fild dword [esp + 0x34]
fcompp
fnstsw ax
test ah, 1
mov eax, dword [esp + 0x44]
push eax
je 0x51c7bb
sub esi, 1
mov dword [esp + 0x20], esi
call sub.gdiplus.dll_GdipDeleteStringFormat
mov ebx, dword [esp + 0x20]
cmp ebx, edi
je 0x51c627
mov ecx, dword [ebx]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
push ebx
call sub.gdiplus.dll_GdipFree
mov dword [esp + 0x20], edi
mov byte [esp + 0x1c0], 2
mov edx, dword [esp + 0x14]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
cmp esi, edi
jg 0x51c4d4
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x1d4]
cmp dword [esp + 0x1d8], edi
jne 0x51c869
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x14]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edx
lea esi, [esp + 0xac]
mov eax, ebp
call fcn.004a1ce0
mov byte [esp + 0x1c0], 9
mov ecx, dword [ebp]
mov eax, dword [eax]
push ecx
mov ecx, eax
lea ebx, [esp + 0x3c]
call fcn.004a1ac0
lea eax, [esp + 0x3c]
push eax
push edi
push edi
mov dword [esp + 0x48], edi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x40], eax
mov ecx, dword [ebp]
mov ebx, dword [sym.imp.GDI32.dll_GetTextColor]
push ecx
call ebx
mov edx, dword [ebp]
push edx
mov esi, eax
call ebx
mov ebx, eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
movzx eax, al
or eax, 0xfffffe00
shl eax, 8
movzx ecx, bh
or eax, ecx
mov edx, esi
shr edx, 0x10
movzx ecx, dl
shl eax, 8
lea edx, [esp + 0x4c]
or eax, ecx
push edx
push eax
mov dword [esp + 0x88], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x54], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], esi
mov eax, dword [esp + 0x1d4]
mov byte [esp + 0x1c0], 0xd
fld dword [eax]
fstp dword [esp + 0x34]
fld dword [eax + 4]
fstp dword [esp + 0x60]
fld dword [esp + 0x2c]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x64]
fadd dword [esp + 0x30]
fstp dword [esp + 0x28]
fld dword [esp + 0x34]
fstp dword [esp + 0x8c]
fld dword [esp + 0x60]
fstp dword [esp + 0x90]
fld dword [esp + 0x64]
mov eax, dword [esp + 0x3c]
fstp dword [esp + 0x94]
fld dword [esp + 0x28]
push 1
push eax
fstp dword [esp + 0xa0]
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, edi
je 0x51c78d
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x4c]
call fcn.004a0d40
mov eax, dword [eax + 0x50]
mov ebx, dword [esp + 0x14]
push eax
push ebx
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, edi
je 0x51c7af
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x51c7f5
mov eax, dword [eax]
jmp 0x51c7f7
call sub.gdiplus.dll_GdipDeleteStringFormat
mov esi, dword [esp + 0x20]
cmp esi, edi
je 0x51c7da
mov ecx, dword [esi]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
push esi
call sub.gdiplus.dll_GdipFree
mov dword [esp + 0x20], edi
mov byte [esp + 0x1c0], 2
mov edx, dword [esp + 0x14]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov esi, dword [esp + 0x1c]
jmp 0x51c64c
xor eax, eax
mov edx, dword [esp + 0x3c]
push esi
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x94]
push ecx
push eax
push 0xffffffffffffffff
push edx
push ebx
call sub.gdiplus.dll_GdipDrawString
cmp eax, edi
je 0x51c81b
mov dword [esp + 0x5c], eax
push esi
mov dword [esp + 0x84], vtable.Gdiplus::Brush.0
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x3c]
push eax
call sub.gdiplus.dll_GdipDeleteStringFormat
mov esi, dword [esp + 0x38]
cmp esi, edi
je 0x51c850
mov ecx, dword [esi]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
push esi
call sub.gdiplus.dll_GdipFree
mov dword [esp + 0x38], edi
push ebx
mov byte [esp + 0x1c4], 2
call sub.gdiplus.dll_GdipDeleteGraphics
mov ebx, dword [esp + 0x1d4]
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x54], esi
je 0x51c8b8
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x4c]
call fcn.004a0d40
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x18]
add ecx, dword [eax + 0x14]
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fstp dword [ebx]
mov ecx, dword [eax + 0x4c]
call fcn.004a0d40
fild dword [eax + 0x34]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
fadd dword [ebx + 4]
lea eax, [edx + esi*2]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
fstp dword [ebx + 4]
jmp 0x51c4b6
fld dword [ebx]
mov ecx, dword [esp + 0x18]
fadd dword [esp + 0x2c]
fstp dword [ebx]
mov ecx, dword [ecx + 0x4c]
call fcn.004a0d40
fild dword [eax + 0x30]
or ecx, 0xffffffff
fadd dword [ebx]
mov dword [esp + 0x1c0], 0xffffffff
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
fstp dword [ebx]
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51c92b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x51c92b
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [esp + 0x1d0]
mov edx, dword [esp + 0x1c8]
mov ebx, dword [esp + 0x1d4]
push ecx
mov ecx, dword [esp + 0x1dc]
push eax
push edx
call fcn.0051bdb0
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b0
ret 0x14