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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x6e1c7c]
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 0x4d2289
je 0x4d226d
lea eax, [edx - 1]
cmp eax, 0xa2
ja case.0x4d1f8a.3
movzx eax, byte [eax + 0x4d2604]
jmp dword [eax*4 + 0x4d25cc]
sub esp, 0x10
call fcn.004d16a0
jmp 0x4d2536
mov eax, dword [edi]
mov eax, dword [eax + 0x34]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4d1f8a.3
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
jmp 0x4d25c0
mov eax, dword [edi]
mov eax, dword [eax + 0x38]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
jmp 0x4d1fa8
mov eax, dword [edi]
mov eax, dword [eax + 0x3c]
cmp eax, method.CMarchDiscountDlg.1.virtual_60
jne 0x4d1fae
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 0x4d2538
mov eax, dword [edi]
mov eax, dword [eax + 0x40]
cmp eax, method.CMarchDiscountDlg.virtual_0
jne 0x4d1fae
xor esi, esi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006021fd
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
mov eax, dword [eax + 0x44]
cmp eax, method.CMarchDiscountDlg.1.virtual_68
jne 0x4d1fae
push dword [edi + 0x10]
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4d20be
mov ecx, dword [ebp + 0x10]
test byte [ecx + 0x18], 0x20
je 0x4d20be
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 0x4d20be
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 0x4d2538
mov eax, dword [edi]
mov eax, dword [eax + 0x48]
cmp eax, method.CMarchDiscountDlg.virtual_0
jne 0x4d1fae
xor esi, esi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006021fd
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
mov eax, dword [eax + 0x4c]
cmp eax, method.CMarchDiscountDlg.virtual_0
jne 0x4d1fae
xor esi, esi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006021fd
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 0x4d25c0
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 0x4d25c0
mov eax, dword [edi]
mov eax, dword [eax + 0x64]
cmp eax, method.CMarchDiscountDlg.1.virtual_100
jne 0x4d1fae
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.0x4d1f8a.3
cmp dword [esp + 0x1c], eax
jne 0x4d217c
test esi, esi
je case.0x4d1f8a.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.004becf0
cmp byte [esp + 0x1b], 0
jne 0x4d223c
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.006021fd
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
mov eax, dword [eax + 0x74]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
jmp 0x4d1fa8
mov eax, dword [edi]
mov eax, dword [eax + 0x78]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
jmp 0x4d1fa8
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 0x4d25c0
cmp edx, 0x202
ja 0x4d23fd
je 0x4d23d4
cmp edx, 0x200
ja 0x4d23a6
je 0x4d237d
sub edx, 0x102
je 0x4d2357
sub edx, 0x10
jne case.0x4d1f8a.3
mov eax, dword [edi]
mov eax, dword [eax + 0x6c]
cmp eax, method.CMarchDiscountDlg.1.virtual_108
jne 0x4d2341
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + 0x10]
cmp esi, 0xf060
jne 0x4d22ee
push edx
push edx
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
jmp 0x4d2538
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.004becf0
cmp byte [esp + 0x1b], 0
mov esi, eax
jne 0x4d2333
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 0x4d2538
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x112
jmp 0x4d25c0
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4d1f8a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x102
jmp 0x4d25c0
mov eax, dword [edi]
mov eax, dword [eax + 0x84]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4d1f8a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x200
jmp 0x4d25c0
cmp edx, 0x201
jne case.0x4d1f8a.3
mov eax, dword [edi]
mov eax, dword [eax + 0x7c]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4d1f8a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push edx
jmp 0x4d25c0
mov eax, dword [edi]
mov eax, dword [eax + 0x80]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4d1f8a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x202
jmp 0x4d25c0
sub edx, 0x20a
je 0x4d2525
sub edx, 0x97
je 0x4d24ff
sub edx, 0x3f
jne case.0x4d1f8a.3
mov eax, dword [edi]
mov eax, dword [eax + 0x60]
cmp eax, method.CMarchDiscountDlg.1.virtual_96
jne 0x4d24e9
mov eax, dword fs:[0x2c]
mov dword [esp + 0x14], edx
mov ecx, dword [eax]
mov eax, dword [0x6efb28]
cmp eax, dword [ecx + 4]
jg 0x4d2558
cmp byte [0x6e2b28], 0
je 0x4d246a
mov ecx, dword [ebp + 0xc]
push 0x60
push 0x64
movzx eax, cx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [0x6e2b24], eax
cmp byte [edi + 0x200], 0
je 0x4d20be
cmp dword [edi + 0x24c], 0
je 0x4d20be
movups xmm0, xmmword [edi + 0x22c]
lea eax, [esp + 0x20]
push eax
movups xmmword [esp + 0x24], xmm0
call fcn.004d8800
mov ecx, eax
call fcn.004d8880
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 0x4d25a2
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 0x4d2538
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x2e0
jmp 0x4d25c0
mov eax, dword [edi]
mov eax, dword [eax + 0x5c]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4d1f8a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x2a1
jmp 0x4d25c0
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
jne 0x4d25af
jmp case.0x4d1f8a.3
mov esi, eax
cmp dword [esp + 0x14], 0
je 0x4d2207
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.006021fd
mov esp, ebp
pop ebp
ret 0xc
push 0x6efb28
call fcn.00602894
add esp, 4
cmp dword [0x6efb28], 0xffffffff
jne 0x4d244b
push 0x653fd0
mov dword [0x6e2b24], 0x64
mov byte [0x6e2b28], 0
call fcn.006026d1
add esp, 4
push 0x6efb28
call fcn.0060284a
add esp, 4
jmp 0x4d244b
mov eax, dword [eax + 0x160]
call eax
jmp 0x4d24cd
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 0x4d2536