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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x6a8c7c]
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 0x4a5789
je 0x4a576d
lea eax, [edx - 1]
cmp eax, 0xa2
ja case.0x4a548a.3
movzx eax, byte [eax + 0x4a5b04]
jmp dword [eax*4 + 0x4a5acc]
sub esp, 0x10
call fcn.004a4ba0
jmp 0x4a5a36
mov eax, dword [edi]
mov eax, dword [eax + 0x34]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4a548a.3
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
jmp 0x4a5ac0
mov eax, dword [edi]
mov eax, dword [eax + 0x38]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
jmp 0x4a54a8
mov eax, dword [edi]
mov eax, dword [eax + 0x3c]
cmp eax, method.CMarchDiscountDlg.1.virtual_60
jne 0x4a54ae
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 0x4a5a38
mov eax, dword [edi]
mov eax, dword [eax + 0x40]
cmp eax, method.CMarchDiscountDlg.virtual_0
jne 0x4a54ae
xor esi, esi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005d584c
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
mov eax, dword [eax + 0x44]
cmp eax, method.CMarchDiscountDlg.1.virtual_68
jne 0x4a54ae
push dword [edi + 0x10]
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4a55be
mov ecx, dword [ebp + 0x10]
test byte [ecx + 0x18], 0x20
je 0x4a55be
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 0x4a55be
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 0x4a5a38
mov eax, dword [edi]
mov eax, dword [eax + 0x48]
cmp eax, method.CMarchDiscountDlg.virtual_0
jne 0x4a54ae
xor esi, esi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005d584c
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
mov eax, dword [eax + 0x4c]
cmp eax, method.CMarchDiscountDlg.virtual_0
jne 0x4a54ae
xor esi, esi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005d584c
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 0x4a5ac0
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 0x4a5ac0
mov eax, dword [edi]
mov eax, dword [eax + 0x64]
cmp eax, method.CMarchDiscountDlg.1.virtual_100
jne 0x4a54ae
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.0x4a548a.3
cmp dword [esp + 0x1c], eax
jne 0x4a567c
test esi, esi
je case.0x4a548a.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.004921e0
cmp byte [esp + 0x1b], 0
jne 0x4a573c
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.005d584c
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
mov eax, dword [eax + 0x74]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
jmp 0x4a54a8
mov eax, dword [edi]
mov eax, dword [eax + 0x78]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
jmp 0x4a54a8
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 0x4a5ac0
cmp edx, 0x202
ja 0x4a58fd
je 0x4a58d4
cmp edx, 0x200
ja 0x4a58a6
je 0x4a587d
sub edx, 0x102
je 0x4a5857
sub edx, 0x10
jne case.0x4a548a.3
mov eax, dword [edi]
mov eax, dword [eax + 0x6c]
cmp eax, method.CMarchDiscountDlg.1.virtual_108
jne 0x4a5841
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + 0x10]
cmp esi, 0xf060
jne 0x4a57ee
push edx
push edx
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
jmp 0x4a5a38
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.004921e0
cmp byte [esp + 0x1b], 0
mov esi, eax
jne 0x4a5833
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 0x4a5a38
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x112
jmp 0x4a5ac0
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4a548a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x102
jmp 0x4a5ac0
mov eax, dword [edi]
mov eax, dword [eax + 0x84]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4a548a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x200
jmp 0x4a5ac0
cmp edx, 0x201
jne case.0x4a548a.3
mov eax, dword [edi]
mov eax, dword [eax + 0x7c]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4a548a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push edx
jmp 0x4a5ac0
mov eax, dword [edi]
mov eax, dword [eax + 0x80]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4a548a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x202
jmp 0x4a5ac0
sub edx, 0x20a
je 0x4a5a25
sub edx, 0x97
je 0x4a59ff
sub edx, 0x3f
jne case.0x4a548a.3
mov eax, dword [edi]
mov eax, dword [eax + 0x60]
cmp eax, method.CMarchDiscountDlg.1.virtual_96
jne 0x4a59e9
mov eax, dword fs:[0x2c]
mov dword [esp + 0x14], edx
mov ecx, dword [eax]
mov eax, dword [0x6b440c]
cmp eax, dword [ecx + 4]
jg 0x4a5a58
cmp byte [0x6a9b28], 0
je 0x4a596a
mov ecx, dword [ebp + 0xc]
push 0x60
push 0x64
movzx eax, cx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [0x6a9b24], eax
cmp byte [edi + 0x200], 0
je 0x4a55be
cmp dword [edi + 0x24c], 0
je 0x4a55be
movups xmm0, xmmword [edi + 0x22c]
lea eax, [esp + 0x20]
push eax
movups xmmword [esp + 0x24], xmm0
call fcn.004abd00
mov ecx, eax
call fcn.004abd80
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 0x4a5aa2
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 0x4a5a38
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x2e0
jmp 0x4a5ac0
mov eax, dword [edi]
mov eax, dword [eax + 0x5c]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
je case.0x4a548a.3
lea ecx, [esp + 0x14]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x2a1
jmp 0x4a5ac0
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
cmp eax, method.CMarchDiscountDlg.1.virtual_52
jne 0x4a5aaf
jmp case.0x4a548a.3
mov esi, eax
cmp dword [esp + 0x14], 0
je 0x4a5707
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.005d584c
mov esp, ebp
pop ebp
ret 0xc
push 0x6b440c
call fcn.005d5ee3
add esp, 4
cmp dword [0x6b440c], 0xffffffff
jne 0x4a594b
push 0x623200
mov dword [0x6a9b24], 0x64
mov byte [0x6a9b28], 0
call fcn.005d5d20
add esp, 4
push 0x6b440c
call fcn.005d5e99
add esp, 4
jmp 0x4a594b
mov eax, dword [eax + 0x160]
call eax
jmp 0x4a59cd
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 0x4a5a36