Function at 0x4ad770
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510ab1
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
xor ebx, ebx
or edi, 0xffffffff
mov ecx, 0x546fac
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 2
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call edx
add eax, 0x10
mov dword [esp + 0x40], eax
lea eax, [esp + 0x68]
push eax
mov eax, esi
mov dword [esp + 0xbc], ebx
call fcn.004048b0
movzx eax, byte [esi + 0x30]
mov dl, byte [esi + 0x31]
mov cl, byte [esi + 0x32]
or eax, 0xffffff00
movzx edx, dl
shl eax, 8
or eax, edx
movzx ecx, cl
shl eax, 8
lea edx, [esp + 0x28]
or eax, ecx
push edx
push eax
mov dword [esp + 0xa8], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xa4], eax
mov byte [esp + 0xb8], 1
cmp dword [esi + 0x30], edi
je 0x4ad8db
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
sub ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x30]
push edx
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edi]
push ecx
push edx
call sub.gdiplus.dll_GdipFillRectangleI
cmp eax, ebx
je 0x4ad8a4
mov dword [edi + 4], eax
mov eax, dword [esi + 0x120]
cmp eax, ebx
je 0x4ad910
mov edx, dword [eax]
mov ecx, dword [esi + 0x18]
mov edx, dword [edx + 0x18]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x120]
push edi
call edx
jmp 0x4ad910
mov ecx, dword [esi + 0x118]
cmp ecx, ebx
je 0x4ad90d
mov edi, dword [esi + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esi + 0x1c]
mov dword [eax + 4], edi
mov edi, dword [esi + 0x20]
mov dword [eax + 8], edi
mov edi, dword [esi + 0x24]
mov dword [eax + 0xc], edi
mov eax, dword [ebp + 8]
push eax
call edx
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x108]
mov ecx, dword [esi + 0x104]
cmp eax, ecx
jne 0x4ad924
fldz
jmp 0x4ad990
jae 0x4ad932
mov dword [esi + 0x108], ecx
mov dword [esi + 0x104], eax
mov ecx, dword [esi + 0x10c]
mov eax, dword [esi + 0x104]
cmp ecx, eax
jae 0x4ad94a
mov dword [esi + 0x10c], eax
jmp 0x4ad95a
mov edx, dword [esi + 0x108]
cmp ecx, edx
jbe 0x4ad95a
mov dword [esi + 0x10c], edx
mov ecx, dword [esi + 0x10c]
sub ecx, eax
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
test ecx, ecx
jge 0x4ad974
fadd qword [0x523a68]
mov edx, dword [esi + 0x108]
sub edx, eax
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
test edx, edx
jge 0x4ad98e
fadd qword [0x523a68]
fdivp st(1)
cmp dword [esi + 0x114], 0xffffffff
fst qword [esp + 0x44]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
je 0x4ada9f
sub eax, ecx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmulp st(1)
call fcn.005075b0
add eax, dword [esp + 0x18]
mov dl, byte [esi + 0x115]
mov cl, byte [esi + 0x116]
mov dword [esp + 0x20], eax
movzx eax, byte [esi + 0x114]
or eax, 0xffffff00
movzx edx, dl
shl eax, 8
or eax, edx
movzx ecx, cl
shl eax, 8
lea edx, [esp + 0x14]
or eax, ecx
push edx
push eax
mov dword [esp + 0x34], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov byte [esp + 0xb8], 2
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [edi]
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
call sub.gdiplus.dll_GdipFillRectangleI
cmp eax, ebx
je 0x4ada57
mov dword [edi + 4], eax
mov eax, dword [esi + 0x11c]
cmp eax, ebx
je 0x4ada90
mov edx, dword [eax]
mov ecx, dword [esp + 0x18]
mov edx, dword [edx + 0x18]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x11c]
push edi
call edx
mov eax, dword [esp + 0x14]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
jmp 0x4adb78
push 0xfffffffffffffffe
fstp st(0)
push 0xfffffffffffffffe
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul qword [esp + 0x44]
call fcn.005075b0
fld1
add eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push ecx
fstp dword [esp]
push 0xff426190
call sub.gdiplus.dll_GdipCreatePen1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
sub eax, edx
push eax
mov eax, dword [edi]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x38]
push ecx
push edx
push eax
call sub.gdiplus.dll_GdipDrawRectangleI
cmp eax, ebx
je 0x4adb1d
mov dword [edi + 4], eax
lea ecx, [esp + 0x14]
push ecx
push 0xff426190
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0x70], edx
mov edx, dword [edi]
push edx
call sub.gdiplus.dll_GdipFillRectangleI
cmp eax, ebx
je 0x4adb64
mov dword [edi + 4], eax
mov eax, dword [esp + 0x5c]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x2c]
push ecx
call sub.gdiplus.dll_GdipDeletePen
push 0x54830c
call sub.gdiplus.dll_GdipStringFormatGetGenericTypographic
lea edx, [esp + 0x38]
mov dword [0x548310], eax
mov eax, dword [0x54830c]
push edx
push eax
mov dword [esp + 0x40], ebx
call sub.gdiplus.dll_GdipCloneStringFormat
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x38]
push 1
push ecx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebx
je 0x4adbb3
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x38]
push 1
push edx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebx
je 0x4adbc7
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x9c]
movzx eax, cl
mov edx, ecx
or eax, 0xffffff00
shr edx, 8
movzx edx, dl
shl eax, 8
or eax, edx
shr ecx, 0x10
movzx ecx, cl
shl eax, 8
lea edx, [esp + 0x14]
or eax, ecx
push edx
push eax
mov dword [esp + 0x34], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov byte [esp + 0xb8], 4
cmp dword [esi + 0x110], ebx
je 0x4adccf
fld qword [esp + 0x44]
fmul qword [0x523ac0]
call fcn.005075b0
push eax
push str._d__
lea edi, [esp + 0x48]
call fcn.004190d0
mov eax, dword [esp + 0xa0]
add esp, 8
cmp eax, ebx
jne 0x4adc56
call fcn.00404aa0
fild dword [esi + 0x18]
mov edx, dword [esi + 0x20]
sub edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x24]
sub ecx, dword [esi + 0x1c]
fstp dword [esp + 0x54]
fild dword [esi + 0x1c]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], ecx
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fstp dword [esp + 0x58]
fld dword [esp + 0x50]
fstp dword [esp + 0x5c]
fild dword [esp + 0x44]
fstp dword [esp + 0x60]
fild dword [esp + 0x2c]
fstp dword [esp + 0x64]
mov ecx, dword [esi - 0xc]
cmp eax, ebx
je 0x4adca7
mov eax, dword [eax]
jmp 0x4adca9
xor eax, eax
mov edx, dword [esp + 0x14]
mov edi, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x3c]
push edx
lea edx, [esp + 0x60]
push edx
push eax
mov eax, dword [edi]
push ecx
push esi
push eax
call sub.gdiplus.dll_GdipDrawString
cmp eax, ebx
je 0x4adcd3
mov dword [edi + 4], eax
jmp 0x4adcd3
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x38]
push edx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov eax, dword [esp + 0x28]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
lea eax, [esi - 0x10]
mov dword [esp + 0xb8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4add18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4