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

Disassembly:
sub esp, 0x1b0
push ebx
mov ebx, dword [esp + 0x1b8]
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x54], ebp
je 0x4ec80b
mov eax, dword [esp + 0x1cc]
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x1d0]
xor eax, eax
call fcn.004d3de0
push 0
push 0
push 0
lea eax, [esp + 0x7c]
call fcn.004d0d70
mov esi, edi
call fcn.004d1a70
lea esi, [esp + 0x11c]
mov dword [esp + 0x110], 0x70e2d0
call fcn.004062c0
lea eax, [esp + 0x110]
mov dword [esp + 0x1b6], 0
mov dword [esp + 0x1ba], edi
call fcn.004d80b0
fld dword [0x723a70]
mov edx, dword [ebp + 4]
push ecx
fstp dword [esp]
push edx
call fcn.00517660
fld dword [0x723950]
mov edi, eax
mov eax, dword [ebp + 4]
push ecx
fstp dword [esp]
push eax
mov dword [esp + 0xec], edi
call fcn.00517660
fld dword [0x723b1c]
push ecx
mov ecx, dword [ebp + 4]
fstp dword [esp]
mov esi, eax
push ecx
mov dword [esp + 0x1c], esi
call fcn.00517660
cmp byte [ebx + 0xc], 0
mov dword [esp + 0x24], eax
je 0x4ebe69
fld dword [0x723b18]
jmp 0x4ebe6f
fld dword [0x723980]
push ecx
fstp dword [esp]
push ebp
call fcn.00403920
fld dword [0x723abc]
mov edx, dword [ebp + 4]
push ecx
fstp dword [esp]
push edx
mov ebx, eax
call fcn.00517660
mov ebp, eax
lea eax, [esp + 0x4c]
push eax
push 0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x54], 0
call sub.gdiplus.dll_GdipCreatePath
mov ecx, dword [esp + 0x1c4]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x10]
sub eax, 0
mov dword [esp + 0x48], 0x6dc03c
je 0x4ec00f
sub eax, 1
je 0x4ebf96
sub eax, 1
je 0x4ebf3c
mov eax, dword [esp + 0x1c8]
sub eax, ebp
mov ebp, dword [esp + 0x1cc]
mov ecx, eax
sub ecx, esi
mov dword [esp + 0x2c], ecx
sub ecx, edi
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x14], eax
sub ebp, ebx
sub eax, dword [esp + 0x24]
fst dword [esp + 0x40]
fldz
mov dword [esp + 0x1c], ebp
fst dword [esp + 0x44]
fild dword [esp + 0x2c]
fst dword [esp + 0x38]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x30]
fild dword [esp + 0x1c]
fst dword [esp + 0x34]
fild dword [esp + 0x14]
fstp dword [esp + 0x1c]
fstp dword [esp + 0x20]
jmp 0x4ec05e
mov edx, dword [esp + 0x24]
add esi, ebp
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
fst dword [esp + 0x40]
add ebp, edx
fldz
fst dword [esp + 0x44]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x1cc]
sub ebp, ebx
fst dword [esp + 0x38]
mov dword [esp + 0x1c], ebp
fild dword [esp + 0x14]
fstp dword [esp + 0x30]
fild dword [esp + 0x1c]
fst dword [esp + 0x34]
fild dword [esp + 0x2c]
fstp dword [esp + 0x1c]
fstp dword [esp + 0x20]
jmp 0x4ec05e
mov ebp, dword [esp + 0x1c8]
mov eax, ebp
sub eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
mov edi, eax
mov eax, ebp
mov ebp, dword [esp + 0x1cc]
sar ecx, 1
cdq
mov dword [esp + 0x14], ecx
sub eax, edx
fild dword [esp + 0x14]
sar eax, 1
sar edi, 1
add eax, edi
fst dword [esp + 0x40]
mov dword [esp + 0x14], eax
fldz
add eax, esi
fst dword [esp + 0x44]
sub ebp, ebx
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
sub ecx, esi
fst dword [esp + 0x38]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fstp dword [esp + 0x30]
fild dword [esp + 0x1c]
fst dword [esp + 0x34]
fild dword [esp + 0x14]
fstp dword [esp + 0x1c]
fstp dword [esp + 0x20]
jmp 0x4ec05e
fild dword [esp + 0x14]
mov eax, dword [esp + 0x1c8]
mov ebp, dword [esp + 0x1cc]
sub eax, esi
fst dword [esp + 0x40]
mov dword [esp + 0x14], eax
fldz
sub ebp, ebx
fst dword [esp + 0x44]
mov dword [esp + 0x1c], ebp
fild dword [esp + 0x14]
fst dword [esp + 0x38]
fild dword [esp + 0x1c8]
fstp dword [esp + 0x30]
fild dword [esp + 0x1c]
fst dword [esp + 0x34]
fstp dword [esp + 0x20]
fxch st(1)
fst dword [esp + 0x1c]
fxch st(1)
mov ecx, dword [esp + 0x4c]
fxch st(1)
sub esp, 0x10
fst dword [esp + 0xc]
fxch st(1)
fstp dword [esp + 8]
fstp dword [esp + 4]
fstp dword [esp]
push ecx
call sub.gdiplus.dll_GdipAddPathLine
test eax, eax
je 0x4ec086
mov dword [esp + 0x50], eax
lea edi, [esp + 0x30]
lea esi, [esp + 0x48]
call fcn.0049cbd0
lea edi, [esp + 0x1c]
call fcn.0049cbd0
lea edi, [esp + 0x40]
call fcn.0049cbd0
mov edi, dword [esp + 0x1c4]
cmp byte [edi + 0xe], 0
lea eax, [edi + 0xc6]
jne 0x4ec0be
lea eax, [edi + 0xc2]
mov eax, dword [eax]
push ecx
mov ecx, esp
lea esi, [esp + 0xfc]
mov dword [esp + 0x30], eax
mov dword [ecx], eax
call fcn.00403200
mov esi, dword [esp + 0x164]
test esi, esi
je 0x4ec12b
mov edx, dword [esp + 0x100]
mov eax, dword [edx + 4]
mov ecx, dword [esi]
add ebp, 0xffffffff
mov dword [esp + 0x14], ebp
fild dword [esp + 0x14]
fild dword [esp + 0x1c8]
sub esp, 0x10
add ebx, 1
mov dword [esp + 0x24], ebx
fild dword [esp + 0x24]
fstp dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fldz
fstp dword [esp]
push eax
push ecx
call sub.gdiplus.dll_GdipFillRectangle
test eax, eax
je 0x4ec12b
mov dword [esi + 4], eax
cmp byte [edi + 0xe], 0
jne 0x4ec1f1
cmp byte [edi + 0xf], 0
jne 0x4ec1f1
cmp byte [edi + 0xd], 0
fldz
fst dword [esp + 0x58]
mov dword [esp + 0x14], 0x646464
fst dword [esp + 0x5c]
mov dword [esp + 0x2c], 0x5a5a5a
fstp dword [esp + 0xd4]
mov dword [esp + 0x24], 0x4b4b4b
fld dword [esp + 0x20]
mov byte [esp + 0x28], 0xff
fstp dword [esp + 0xd8]
lea eax, [esp + 0x14]
jne 0x4ec186
lea eax, [esp + 0x2c]
mov edx, dword [eax]
push 0
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x60]
push ecx
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
lea edi, [esp + 0x7c]
mov dword [esp + 0x20], edx
mov byte [esp + 0x24], 0xff
call fcn.00505c60
mov edx, edi
push edx
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x120]
call fcn.0050f4c0
mov eax, dword [esp + 0x80]
push eax
mov dword [esp + 0x80], 0x70c650
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x74]
push ecx
mov dword [esp + 0x74], 0x6dbd38
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4ec206
lea edx, [esp + 0x11c]
push edx
lea edi, [esp + 0x4c]
lea ecx, [esp + 0x30]
call fcn.0049d6c0
mov ebx, dword [esp + 0x1c4]
mov al, byte [ebx + 0xe]
test al, al
lea esi, [ebx + 0xce]
jne 0x4ec220
lea esi, [ebx + 0xd2]
xor ecx, ecx
test al, al
setne cl
xor edx, edx
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], edx
lea ecx, [ecx + ecx + 1]
mov eax, ecx
mov ecx, dword [esi]
push ecx
push eax
push edx
mov dword [esp + 0xf8], eax
call dword [sym.imp.GDI32.dll_CreatePen]
lea edx, [esp + 0x19a]
push edx
lea edi, [esp + 0x18]
lea esi, [esp + 0x175]
lea ecx, [esp + 0xec]
mov dword [esp + 0xec], eax
call fcn.004033b0
test al, al
je 0x4ec284
mov eax, dword [esp + 0x14]
mov dword [esp + 0x186], eax
xor ebp, ebp
cmp dword [ebx + 0x10], ebp
jne 0x4ec311
fld dword [esp + 0x1c]
fld1
fadd st(1), st(0)
fxch st(1)
call fcn.006b24a0
fld dword [esp + 0x20]
mov dword [esp + 0x70], eax
call fcn.006b24a0
fld dword [esp + 0x40]
mov dword [esp + 0x74], eax
call fcn.006b24a0
fld dword [esp + 0x38]
fsub st(1)
mov dword [esp + 0x1c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebp
call fcn.006b24a0
fsubr dword [esp + 0x30]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebp
call fcn.006b24a0
fld dword [esp + 0x34]
mov dword [esp + 0x88], eax
call fcn.006b24a0
push 4
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x94], eax
push edx
jmp 0x4ec3b1
fld dword [esp + 0x20]
mov dword [esp + 0x70], ebp
fld1
fsub st(1), st(0)
fxch st(1)
call fcn.006b24a0
fld dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x74], esi
call fcn.006b24a0
fld dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], esi
call fcn.006b24a0
fld dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebp
call fcn.006b24a0
fld dword [esp + 0x30]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ebp
call fcn.006b24a0
fsubr dword [esp + 0x34]
mov dword [esp + 0x90], eax
call fcn.006b24a0
mov ecx, dword [esp + 0x1c8]
push 6
lea edx, [esp + 0x74]
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], eax
push edx
lea eax, [esp + 0x124]
mov dword [esp + 0xa0], ecx
push eax
call fcn.0049d0a0
mov eax, dword [ebx + 0xca]
push eax
push 2
push ebp
mov dword [esp + 0xe4], 2
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xec], ebp
call dword [sym.imp.GDI32.dll_CreatePen]
lea ecx, [esp + 0x19a]
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x175]
lea ecx, [esp + 0xd8]
mov dword [esp + 0xd8], eax
call fcn.004033b0
test al, al
je 0x4ec414
mov edx, dword [esp + 0x14]
mov dword [esp + 0x186], edx
mov esi, dword [esp + 0x54]
fld dword [0x723950]
mov eax, dword [esi + 4]
push ecx
fstp dword [esp]
push eax
call fcn.00517660
mov edx, dword [esi + 4]
lea ecx, [esp + 0x58]
push ecx
mov edi, eax
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], 3
call dword [sym.imp.USER32.dll_MapDialogRect]
mov bl, byte [ebx + 0xc]
mov eax, edi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x64]
cdq
sub eax, edx
mov ebp, eax
sar esi, 1
sar ebp, 1
test bl, bl
jne 0x4ec471
mov edi, esi
mov eax, dword [esp + 0x1c]
add edi, eax
test bl, bl
je 0x4ec485
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
jmp 0x4ec489
mov dword [esp + 0x24], esi
fld dword [esp + 0x38]
call fcn.006b24a0
mov ecx, eax
mov eax, dword [esp + 0x1cc]
sub ecx, dword [esp + 0x24]
cdq
sub eax, edx
mov edx, edi
sar eax, 1
sub edx, esi
test bl, bl
push 3
je 0x4ec510
mov dword [esp + 0x64], edi
add edi, esi
mov dword [esp + 0x5c], edx
mov edx, eax
add eax, ebp
mov dword [esp + 0x6c], edi
mov edi, ecx
mov dword [esp + 0x7c], ecx
add ecx, esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x80], eax
sub edx, ebp
lea eax, [esp + 0x5c]
mov dword [esp + 0x84], ecx
push eax
lea ecx, [esp + 0x124]
sub edi, esi
push ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edx
mov dword [esp + 0x90], edx
call fcn.0049d0a0
lea edx, [esp + 0x70]
jmp 0x4ec56f
mov dword [esp + 0x7c], edi
add edi, esi
mov dword [esp + 0x74], edx
lea edx, [eax + ebp]
sub eax, ebp
mov dword [esp + 0x84], edi
mov edi, ecx
mov dword [esp + 0x64], ecx
add ecx, esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], ecx
push eax
lea ecx, [esp + 0x124]
sub edi, esi
push ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x90], edx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x78], edx
call fcn.0049d0a0
lea edx, [esp + 0x58]
push 3
push edx
lea eax, [esp + 0x124]
push eax
call fcn.0049d0a0
mov ebp, dword [esp + 0x1c4]
mov al, byte [ebp + 0xc]
test al, al
je 0x4ec596
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], ecx
jmp 0x4ec59d
mov edx, dword [ebp + 4]
mov dword [esp + 0x24], edx
cmp dword [esp + 0x24], 0
je 0x4ec777
test al, al
mov ecx, dword [ebp + 0xbe]
mov dword [esp + 0x16c], ecx
mov byte [esp + 0x170], 0xff
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
push 0
je 0x4ec5fd
fld1
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 4]
push 0
push 0
push 0
push 0
push ecx
lea edx, [esp + 0x50]
fstp dword [esp]
push edx
call fcn.00402e40
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4ec6d6
mov ecx, dword [esp + 0x58]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ecx + 4]
call edi
push 0
push 0
push 0x31
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x70]
push edx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x4ec6a6
push 0x5c
push eax
lea eax, [esp + 0x78]
push eax
call fcn.006a1300
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.MS_Shell_Dlg_2]
mov word [esp + eax + 0x8c], cx
add eax, 2
test cx, cx
jne 0x4ec641
push esi
mov dword [esp + 0x84], 0x190
mov byte [esp + 0x8f], 0x20
mov byte [esp + 0x8b], 1
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x48
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
neg eax
mov dword [esp + 0x70], eax
fild dword [esp + 0x70]
push ecx
fstp dword [esp]
call fcn.00401650
call fcn.006b24a0
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x84], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esp + 0x38], eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x120]
push eax
call fcn.0050f500
cmp byte [ebp + 0xc], 0
mov esi, dword [esp + 0x164]
je 0x4ec71b
test esi, esi
je 0x4ec71b
mov ecx, dword [esi]
push 3
push ecx
call sub.gdiplus.dll_GdipSetSmoothingMode
test eax, eax
je 0x4ec70a
mov dword [esi + 4], eax
mov edx, dword [esi]
push 1
push edx
call sub.gdiplus.dll_GdipSetTextRenderingHint
test eax, eax
je 0x4ec71b
mov dword [esi + 4], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push 0
push eax
mov eax, dword [esp + 0xec]
push ecx
lea edx, [esp + 0x128]
push edx
mov edx, dword [esp + 0x1dc]
call fcn.00406ae0
cmp byte [ebp + 0xc], 0
je 0x4ec76e
test esi, esi
je 0x4ec76e
mov eax, dword [esi]
push 4
push eax
call sub.gdiplus.dll_GdipSetSmoothingMode
test eax, eax
je 0x4ec75d
mov dword [esi + 4], eax
mov ecx, dword [esi]
push 4
push ecx
call sub.gdiplus.dll_GdipSetTextRenderingHint
test eax, eax
je 0x4ec76e
mov dword [esi + 4], eax
mov edx, dword [esp + 0x38]
push edx
call edi
jmp 0x4ec77d
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
lea esi, [esp + 0x11c]
call fcn.0050f0d0
mov eax, dword [esp + 0xd4]
push eax
call edi
mov ecx, dword [esp + 0xe8]
push ecx
call edi
mov edx, dword [esp + 0x108]
push edx
mov dword [esp + 0x108], 0x70c650
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0xfc]
push eax
mov dword [esp + 0xfc], 0x6dbd38
call edi
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0x4c], 0x6dc03c
call sub.gdiplus.dll_GdipDeletePath
mov dword [esp + 0x110], 0x70e2d0
call fcn.0050f0d0
mov ecx, dword [esp + 0x1b6]
test ecx, ecx
je 0x4ec7ff
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea eax, [esp + 0x11c]
call fcn.00406370
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b0
ret 0xc