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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dab95
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x6c], 4
push edi
jne 0x477415
cmp dword [esi + 0x70], 0
je 0x4772f5
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
xor ebx, ebx
cmp dword [esi + 0x74], ebx
cdq
sete bl
sub eax, edx
sar eax, 1
lea ebx, [ebx + ebx - 1]
imul ebx, dword [esi + 0x78]
add ebx, eax
mov dword [esp + 0x40], ebx
jmp 0x477313
cmp dword [esi + 0x74], 0
je 0x477309
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, dword [esi + 0x78]
mov dword [esp + 0x40], eax
jmp 0x477310
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0xc]
cmp dword [esi + 0x88], 0
je 0x47733f
mov eax, dword [ecx]
xor ebx, ebx
cmp dword [esi + 0x8c], ebx
cdq
sete bl
sub eax, edx
sar eax, 1
lea ebx, [ebx + ebx - 1]
imul ebx, dword [esi + 0x90]
add ebx, eax
mov edi, ebx
jmp 0x477358
cmp dword [esi + 0x8c], 0
je 0x477352
mov edi, dword [ecx]
sub edi, dword [esi + 0x90]
jmp 0x477358
mov edi, dword [esi + 0x90]
cmp dword [esi + 0x7c], 0
je 0x477382
mov eax, dword [ecx + 4]
xor ebx, ebx
cmp dword [esi + 0x80], ebx
cdq
sete bl
sub eax, edx
sar eax, 1
lea ebx, [ebx + ebx - 1]
imul ebx, dword [esi + 0x84]
add ebx, eax
mov edx, ebx
jmp 0x47739c
cmp dword [esi + 0x80], 0
je 0x477396
mov edx, dword [ecx + 4]
sub edx, dword [esi + 0x84]
jmp 0x47739c
mov edx, dword [esi + 0x84]
cmp dword [esi + 0x94], 0
mov dword [esp + 0x44], edx
je 0x4773dd
mov eax, dword [ecx + 4]
xor ebx, ebx
cmp dword [esi + 0x98], ebx
cdq
sete bl
sub edi, dword [esp + 0x40]
sub eax, edx
mov edx, dword [esp + 0x44]
sar eax, 1
lea ebx, [ebx + ebx - 1]
imul ebx, dword [esi + 0x9c]
add eax, ebx
sub eax, edx
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x477822
cmp dword [esi + 0x98], 0
je 0x4773ff
mov eax, dword [ecx + 4]
sub eax, dword [esi + 0x9c]
sub edi, dword [esp + 0x40]
sub eax, edx
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x477822
mov eax, dword [esi + 0x9c]
sub edi, dword [esp + 0x40]
sub eax, edx
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x477822
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [esp + 0x24], ebx
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0xc], eax
mov byte [esp + 0x5c], 1
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], edx
call fcn.00472db0
mov edi, eax
push ebx
mov dword [esp + 0x14], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [ebp + 8], 0
mov dword [esp + 0xc], eax
je 0x47748a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, dword [esp + 0x40]
mov edx, dword [eax + 4]
add edx, dword [esp + 0x44]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
movzx eax, word [esi + 0x5c]
test ax, ax
je 0x477498
movzx ebx, ax
jmp 0x4774b3
mov ecx, dword [esi + 0x4c]
call fcn.00472db0
cmp word [eax + 0x2c], 0
je 0x4774ca
mov ecx, dword [esi + 0x4c]
call fcn.00472db0
movzx ebx, word [eax + 0x2c]
test ebx, ebx
je 0x4774ca
push esi
call fcn.0045c150
push eax
push ebx
call fcn.00461660
add esp, 8
mov dword [esi + 0x58], eax
mov ebx, dword [esi + 0x58]
test ebx, ebx
jne 0x477530
mov edi, esi
mov edi, dword [edi + 8]
test edi, edi
je 0x47752c
call fcn.0048c010
mov edi, eax
test edi, edi
je 0x47752c
movzx eax, word [edi + 0x5c]
test ax, ax
je 0x4774f3
movzx ebx, ax
jmp 0x47750e
mov ecx, dword [edi + 0x4c]
call fcn.00472db0
cmp word [eax + 0x2c], 0
je 0x477525
mov ecx, dword [edi + 0x4c]
call fcn.00472db0
movzx ebx, word [eax + 0x2c]
test ebx, ebx
je 0x477525
push edi
call fcn.0045c150
push eax
push ebx
call fcn.00461660
add esp, 8
mov dword [edi + 0x58], eax
mov ebx, dword [edi + 0x58]
test ebx, ebx
je 0x4774d3
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x34]
and eax, 1
cmp al, 1
jne 0x4775a5
cmp word [edi + 0x2e], 0
je 0x477559
push esi
call fcn.0045c150
movzx ecx, word [edi + 0x2e]
push eax
push ecx
call fcn.00461660
add esp, 8
mov ebx, eax
jmp 0x4775a5
mov edi, esi
jmp 0x477560
mov edi, dword [edi + 8]
test edi, edi
je 0x4775a1
call fcn.0048c010
mov edi, eax
test edi, edi
je 0x4775a1
mov ecx, dword [edi + 0x4c]
call fcn.00472db0
cmp word [eax + 0x2e], 0
je 0x477560
mov ecx, dword [edi + 0x4c]
call fcn.00472db0
push esi
mov edi, eax
call fcn.0045c150
movzx edx, word [edi + 0x2e]
push eax
push edx
call fcn.00461660
add esp, 8
mov ebx, eax
mov edi, dword [esp + 0x10]
test ebx, ebx
jne 0x4775bb
push esi
call fcn.0045c150
push eax
push ebx
call fcn.00461660
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0xc]
push ebx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x38]
neg eax
push eax
neg ecx
push ecx
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi + 0x20]
and eax, 0xfffffff0
test al, 0x10
je 0x4775f4
mov dword [esp + 0x4c], 0x7fff
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx - 0xc]
test edx, edx
je 0x4777c1
cmp dword [edi + 0x54], 0
je 0x4777a7
lea edx, [esp + 0x28]
push edx
push 0
push 0
mov dword [esp + 0x34], 0
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
push ebx
push edi
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x68], 3
call fcn.004738d0
mov byte [esp + 0x5c], 4
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x44]
mov edi, dword [esi + 8]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fstp dword [esp + 0x30]
fild dword [esp + 0x14]
fstp dword [esp + 0x34]
call fcn.0048c010
test eax, eax
je 0x4776bb
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x1c]
mov edi, dword [eax + 0x18]
mov eax, dword [eax + 0x20]
sub ecx, edx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
sub eax, edi
mov dword [esp + 0x14], eax
fstp dword [esp + 0x30]
fild dword [esp + 0x14]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push 0
push edx
call sub.gdiplus.dll_GdipSetStringFormatAlign
test eax, eax
je 0x4776cf
mov dword [esp + 0x2c], eax
mov esi, dword [esi + 0x28]
fldz
mov eax, dword [esi - 0xc]
fst dword [esp + 0x18]
push eax
fstp dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
lea edi, [esp + 0x20]
lea ecx, [esp + 0x34]
lea eax, [esp + 0x3c]
mov edx, esi
call fcn.004732d0
fld dword [esp + 0x14]
fld st(0)
fld st(1)
call fcn.004cf430
mov dword [esp + 0x1c], eax
fisub dword [esp + 0x1c]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld1
jp 0x47772f
fadd st(2), st(0)
fxch st(2)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fxch st(2)
fld dword [esp + 0x18]
fld st(0)
fld st(1)
call fcn.004cf430
mov dword [esp + 0x1c], eax
fisub dword [esp + 0x1c]
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 0x41
jne 0x47775b
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
jmp 0x47775d
fstp st(0)
fild dword [esp + 0x40]
faddp st(2)
fxch st(1)
call fcn.004cf430
fiadd dword [esp + 0x44]
mov dword [esp + 0x48], eax
call fcn.004cf430
test esi, esi
mov dword [esp + 0x4c], eax
je 0x47778d
mov edx, dword [esi]
push edx
call sub.gdiplus.dll_GdipDeleteFont
push esi
call sub.gdiplus.dll_GdipFree
mov eax, dword [esp + 0x38]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x28]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov edi, dword [esp + 0x10]
jmp 0x4777d1
mov esi, dword [esp + 0xc]
or eax, 0x400
push eax
lea eax, [esp + 0x44]
push eax
push edx
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x4777d5
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov esi, dword [esp + 0xc]
mov eax, dword [edi + 0x34]
add eax, eax
mov ecx, eax
sub ecx, dword [esp + 0x40]
mov eax, dword [ebp + 0xc]
add ecx, dword [esp + 0x48]
mov dword [eax], ecx
mov edx, dword [edi + 0x38]
add edx, edx
sub edx, dword [esp + 0x44]
add edx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x20]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x477822
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8