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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x6ddc7c]
xor eax, esp
mov dword [esp + 0x54], eax
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], 1
push esi
push edi
mov edi, ecx
cmp edx, 0x100
ja 0x4cf869
je 0x4cf84d
lea eax, [edx - 1]
cmp eax, 0xa2
ja case.0x4cf56a.3
movzx eax, byte [eax + 0x4cfbe4]
jmp dword [eax*4 + 0x4cfbac]
sub esp, 0x10
call fcn.004cec80
jmp 0x4cfb16
mov eax, dword [edi]
mov eax, dword [eax + 0x34]
cmp eax, method.ui::WindowImplBase.virtual_52
je case.0x4cf56a.3
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
jmp 0x4cfba0
mov eax, dword [edi]
mov eax, dword [eax + 0x38]
cmp eax, method.ui::WindowImplBase.virtual_52
jmp 0x4cf588
mov eax, dword [edi]
mov eax, dword [eax + 0x3c]
cmp eax, method.ui::WindowImplBase.virtual_60
jne 0x4cf58e
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, dword [esp + 0x14]
xor edx, edx
test eax, eax
cmovne ecx, edx
xor eax, eax
cmp dword [ebp + 0xc], eax
mov dword [esp + 0x14], ecx
sete al
mov dword [esp + 0x1c], eax
mov esi, eax
jmp 0x4cfb18
mov eax, dword [edi]
mov eax, dword [eax + 0x40]
cmp eax, method.CMarchDiscountDlg.virtual_0
jne 0x4cf58e
xor esi, esi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
mov eax, dword [eax + 0x44]
cmp eax, method.ui::WindowImplBase.virtual_68
jne 0x4cf58e
push dword [edi + 0x10]
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4cf69e
mov ecx, dword [ebp + 0x10]
test byte [ecx + 0x18], 0x20
je 0x4cf69e
push 1
push 0
push 0
call dword [sym.imp.USER32.dll_MonitorFromPoint]
push 2
push dword [edi + 0x10]
mov esi, eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
cmp eax, esi
je 0x4cf69e
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0x28
xorps xmm0, xmm0
mov dword [esp + 0x58], 0
push ecx
push eax
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x50], xmm0
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov esi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
sub eax, ecx
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x54]
sub eax, edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], eax
xor esi, esi
jmp 0x4cfb18
mov eax, dword [edi]
mov eax, dword [eax + 0x48]
cmp eax, method.CMarchDiscountDlg.virtual_0
jne 0x4cf58e
xor esi, esi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
mov eax, dword [eax + 0x4c]
cmp eax, method.CMarchDiscountDlg.virtual_0
jne 0x4cf58e
xor esi, esi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [eax + 0x50]
push edx
jmp 0x4cfba0
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [eax + 0x54]
push edx
jmp 0x4cfba0
mov eax, dword [edi]
mov eax, dword [eax + 0x64]
cmp eax, method.ui::WindowImplBase.virtual_100
jne 0x4cf58e
mov eax, dword [edi + 0x70]
push dword [edi + 0x10]
mov esi, dword [edi + 0x74]
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne case.0x4cf56a.3
cmp dword [esp + 0x1c], eax
jne 0x4cf75c
test esi, esi
je case.0x4cf56a.3
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0
push eax
push dword [edi + 0x10]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
neg eax
push eax
mov eax, dword [esp + 0x24]
neg eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
inc eax
push esi
push dword [esp + 0x20]
inc ecx
mov dword [esp + 0x34], eax
push eax
push ecx
push dword [esp + 0x34]
mov dword [esp + 0x3c], ecx
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push 1
mov esi, eax
push esi
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x14], 0
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0x1b]
push eax
push esi
push dword [ebp + 0xc]
mov ecx, edi
mov byte [esp + 0x27], 0
push dword [ebp + 8]
call fcn.004bc2c0
cmp byte [esp + 0x1b], 0
jne 0x4cf81c
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x10]
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
mov eax, dword [eax + 0x74]
cmp eax, method.ui::WindowImplBase.virtual_52
jmp 0x4cf588
mov eax, dword [edi]
mov eax, dword [eax + 0x78]
cmp eax, method.ui::WindowImplBase.virtual_52
jmp 0x4cf588
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x70]
push ecx
push 0x100
jmp 0x4cfba0
cmp edx, 0x202
ja 0x4cf9dd
je 0x4cf9b4
cmp edx, 0x200
ja 0x4cf986
je 0x4cf95d
sub edx, 0x102
je 0x4cf937
sub edx, 0x10
jne case.0x4cf56a.3
mov eax, dword [edi]
mov eax, dword [eax + 0x6c]
cmp eax, method.ui::WindowImplBase.virtual_108
jne 0x4cf921
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + 0x10]
cmp esi, 0xf060
jne 0x4cf8ce
push edx
push edx
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
jmp 0x4cfb18
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x1b]
push eax
push ecx
push esi
push 0x112
mov ecx, edi
mov byte [esp + 0x2b], 0
call fcn.004bc2c0
cmp byte [esp + 0x1b], 0
mov esi, eax
jne 0x4cf913
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x112
push dword [edi + 0x10]
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov esi, eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_IsZoomed]
jmp 0x4cfb18
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x112
jmp 0x4cfba0
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
cmp eax, method.ui::WindowImplBase.virtual_52
je case.0x4cf56a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x102
jmp 0x4cfba0
mov eax, dword [edi]
mov eax, dword [eax + 0x84]
cmp eax, method.ui::WindowImplBase.virtual_52
je case.0x4cf56a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x200
jmp 0x4cfba0
cmp edx, 0x201
jne case.0x4cf56a.3
mov eax, dword [edi]
mov eax, dword [eax + 0x7c]
cmp eax, method.ui::WindowImplBase.virtual_52
je case.0x4cf56a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push edx
jmp 0x4cfba0
mov eax, dword [edi]
mov eax, dword [eax + 0x80]
cmp eax, method.ui::WindowImplBase.virtual_52
je case.0x4cf56a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x202
jmp 0x4cfba0
sub edx, 0x20a
je 0x4cfb05
sub edx, 0x97
je 0x4cfadf
sub edx, 0x3f
jne case.0x4cf56a.3
mov eax, dword [edi]
mov eax, dword [eax + 0x60]
cmp eax, method.ui::WindowImplBase.virtual_96
jne 0x4cfac9
mov eax, dword fs:[0x2c]
mov dword [esp + 0x14], edx
mov ecx, dword [eax]
mov eax, dword [0x6ebaa8]
cmp eax, dword [ecx + 4]
jg 0x4cfb38
cmp byte [0x6deb28], 0
je 0x4cfa4a
mov ecx, dword [ebp + 0xc]
push 0x60
push 0x64
movzx eax, cx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [0x6deb24], eax
cmp byte [edi + 0x200], 0
je 0x4cf69e
cmp dword [edi + 0x24c], 0
je 0x4cf69e
movups xmm0, xmmword [edi + 0x22c]
lea eax, [esp + 0x20]
push eax
movups xmmword [esp + 0x24], xmm0
call fcn.004d5de0
mov ecx, eax
call fcn.004d5e60
mov ecx, dword [edi + 0x24c]
movaps xmm0, xmmword [esp + 0x20]
movups xmmword [edi + 0x21c], xmm0
movups xmmword [edi + 0x23c], xmm0
mov eax, dword [ecx]
cmp eax, vtable.ui::Box.0
jne 0x4cfb82
mov eax, dword [ecx + 0x220]
movups xmm0, xmmword [edi + 0x22c]
mov edx, dword [eax]
push 1
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call dword [edx + 0x14]
xor esi, esi
jmp 0x4cfb18
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x2e0
jmp 0x4cfba0
mov eax, dword [edi]
mov eax, dword [eax + 0x5c]
cmp eax, method.ui::WindowImplBase.virtual_52
je case.0x4cf56a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x2a1
jmp 0x4cfba0
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
cmp eax, method.ui::WindowImplBase.virtual_52
jne 0x4cfb8f
jmp case.0x4cf56a.3
mov esi, eax
cmp dword [esp + 0x14], 0
je 0x4cf7e7
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 0xc
push 0x6ebaa8
call fcn.005ffe54
add esp, 4
cmp dword [0x6ebaa8], 0xffffffff
jne 0x4cfa2b
push 0x651130
mov dword [0x6deb24], 0x64
mov byte [0x6deb28], 0
call fcn.005ffc91
add esp, 4
push 0x6ebaa8
call fcn.005ffe0a
add esp, 4
jmp 0x4cfa2b
mov eax, dword [eax + 0x160]
call eax
jmp 0x4cfaad
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x20a
mov ecx, edi
call eax
jmp 0x4cfb16