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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f5880
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [esp + 0x50], xmm0
push 8
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0
call fcn.004df9b3
add esp, 4
test eax, eax
jne 0x4a6f3e
mov byte [esp + 0x12], al
lea eax, [esp + 0x12]
push 0x51c2c8
push eax
call fcn.004ea58e
xor ecx, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 3
mov word [eax], cx
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0x50]
call fcn.004cd520
mov ebx, dword [ebp + 0xc]
push 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
call fcn.004df9b3
add esp, 4
test eax, eax
je 0x4a71ae
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 3
mov word [eax], cx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x20]
mov byte [esp + 0x80], 1
push eax
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
mov ecx, 0x5236c4
mov dword [esp + 0x38], 0x17
call fcn.0041c6a0
test al, al
je 0x4a71c2
cmp byte [edi], 0
mov ecx, dword [esp + 0x38]
jne 0x4a7015
cmp ecx, 8
jne 0x4a7015
mov byte [esp + 0x80], 0
push dword [esp + 0x20]
call fcn.004df97b
jmp 0x4a718d
cmp ecx, 0x22a
jne 0x4a703a
cmp dword [esp + 0x54], 0
jne 0x4a7042
mov byte [esp + 0x80], 0
push dword [esp + 0x20]
call fcn.004df97b
jmp 0x4a718d
cmp ecx, 0x386
je 0x4a701d
cmp byte [edi + 2], 0
je 0x4a7054
cmp dword [edi + 8], 1
jne 0x4a7054
cmp byte [edi + 3], 0
jne 0x4a7064
cmp ecx, 0x225
je 0x4a7068
cmp ecx, 0x226
je 0x4a7068
xor bl, bl
jmp 0x4a706a
mov bl, 1
cmp byte [edi + 1], 0
je case.0x4a7082.546
lea eax, [ecx - 0x221]
cmp eax, 0xb
ja case.0x4a7082.546
movzx eax, byte [eax + 0x4a722c]
jmp dword [eax*4 + 0x4a7224]
mov bl, 1
cmp ecx, 0x22e
jne 0x4a709d
cmp dword [edi + 8], 1
je 0x4a70ac
mov bl, 1
jmp 0x4a70ac
cmp ecx, 0x22f
jne 0x4a70ac
cmp byte [edi + 4], 0
sete bl
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
movzx edi, ax
shr eax, 0x10
push 0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x64]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esp + 0x68]
lea eax, [edi + edi*4]
mov edx, dword [esp + 0x6c]
add eax, eax
sub ecx, dword [esp + 0x60]
sub edx, dword [esp + 0x64]
cmp eax, ecx
jg 0x4a70ef
imul eax, dword [esp + 0x4c], 0x19
cmp eax, edx
jle 0x4a7101
test bl, bl
jne 0x4a7174
cmp dword [esp + 0x30], 0x800
je 0x4a7174
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x4a711e
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004a6570
mov dword [esp + 0x3c], esi
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x20]
push eax
push ecx
push edi
lea ecx, [esp + 0x68]
call fcn.0041c870
mov esi, dword [esp + 0x5c]
test al, al
je 0x4a714e
test bl, bl
je 0x4a714a
push 0x401
push edi
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
inc edi
mov dword [ebp + 0xc], edi
cmp dword [esp + 0x30], 0x800
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x80], 0
cmovne ebx, edi
push dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
call fcn.004df97b
jmp 0x4a7189
mov byte [esp + 0x80], 0
push dword [esp + 0x20]
call fcn.004df97b
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
inc dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x20], 0
push 8
call fcn.004df9b3
add esp, 4
test eax, eax
jne 0x4a6f90
push 0x51c2c8
lea eax, [esp + 0x17]
mov byte [esp + 0x17], 0
push eax
call fcn.004ea58e
mov byte [esp + 0x80], 0
push dword [esp + 0x20]
call fcn.004df97b
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
add esp, 4
lea esp, [esp]
push 0x400
push ebx
push esi
call edi
test eax, eax
jne 0x4a71e0
mov dword [esp + 0x80], 0xffffffff
push dword [esp + 0x50]
call fcn.004df97b
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004df96c
mov esp, ebp
pop ebp
ret 8