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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x6080a5
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x6af320]
xor eax, esp
mov dword [esp + 0xc4], eax
push esi
push edi
mov eax, dword [0x6af320]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x10], eax
sub esp, 0x30
lea edi, [eax + 0x40]
mov esi, esp
mov ecx, esi
push 0xffffffffffffffff
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push edi
mov byte [esi], 0
call fcn.0042d0e0
movdqu xmm0, xmmword [edi + 0x18]
lea ecx, [esp + 0xe8]
movdqu xmmword [esi + 0x18], xmm0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
call fcn.004c29f0
add esp, 0x30
mov dword [esp + 0xe0], 0
mov dword [esp + 0x84], 0
push 0x400
push ecx
lea ecx, [esp + 0x90]
mov byte [esp + 0xe8], 1
call fcn.00432b60
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
lea ecx, [esp + 0x78]
mov byte [esp + 0xe0], 2
call fcn.004305d0
mov edi, dword [esp + 0x10]
xor ecx, ecx
xorps xmm0, xmm0
mov dword [esp + 0x84], 3
movq qword [esp + 0x78], xmm0
mov dword [esp + 0x80], 0
mov al, byte [edi + 0xd0]
test al, al
setne cl
add ecx, 0x101
mov dword [esp + 0x30], ecx
push ecx
lea eax, [esp + 0x28]
mov byte [esp + 0xe4], 3
push eax
mov edx, str.reduceInertia
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x24]
call fcn.004305d0
mov al, byte [edi + 0xd1]
xor ecx, ecx
test al, al
setne cl
add ecx, 0x101
mov dword [esp + 0x30], ecx
push ecx
lea eax, [esp + 0x28]
mov byte [esp + 0xe4], 4
push eax
mov edx, str.keyboardShowGreet
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x24]
call fcn.004305d0
mov al, byte [edi + 0xd2]
xor ecx, ecx
test al, al
setne cl
add ecx, 0x101
mov dword [esp + 0x30], ecx
push ecx
lea eax, [esp + 0x28]
mov byte [esp + 0xe4], 5
push eax
mov edx, str.joystickShowGreet
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x24]
call fcn.004305d0
mov al, byte [edi + 0xd3]
xor ecx, ecx
test al, al
setne cl
add ecx, 0x101
mov dword [esp + 0x30], ecx
push ecx
lea eax, [esp + 0x28]
mov byte [esp + 0xe4], 6
push eax
mov edx, str.keyboardFirstGreet
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x24]
call fcn.004305d0
mov al, byte [edi + 0xd4]
xor ecx, ecx
test al, al
setne cl
add ecx, 0x101
mov dword [esp + 0x30], ecx
push ecx
lea eax, [esp + 0x28]
mov byte [esp + 0xe4], 7
push eax
mov edx, str.joystickFirstGreet
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x24]
call fcn.004305d0
mov al, byte [edi + 0xd5]
xor ecx, ecx
test al, al
setne cl
add ecx, 0x101
mov dword [esp + 0x30], ecx
push ecx
lea eax, [esp + 0x28]
mov byte [esp + 0xe4], 8
push eax
mov edx, str.keyboardShowHints
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x24]
call fcn.004305d0
mov al, byte [edi + 0xd6]
xor ecx, ecx
test al, al
setne cl
add ecx, 0x101
mov dword [esp + 0x30], ecx
push ecx
lea eax, [esp + 0x28]
mov byte [esp + 0xe4], 9
push eax
mov edx, str.joystickShowHints
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x24]
call fcn.004305d0
mov eax, dword [edi + 0xe0]
mov ecx, 0x3a06
test eax, 0x80000000
mov dword [esp + 0x14], eax
mov esi, 0x3e06
mov dword [esp + 0x18], 0
cmove ecx, esi
mov dword [esp + 0x20], ecx
push ecx
lea eax, [esp + 0x18]
mov byte [esp + 0xe4], 0xa
push eax
mov edx, str.keyboardIgnoreVersion
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x14]
call fcn.004305d0
mov eax, dword [edi + 0xe4]
mov ecx, 0x3a06
test eax, 0x80000000
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
cmove ecx, esi
mov dword [esp + 0x20], ecx
push ecx
lea eax, [esp + 0x18]
mov byte [esp + 0xe4], 0xb
push eax
mov edx, str.joystickIgnoreVersion
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x14]
call fcn.004305d0
mov ecx, dword [edi + 0xd8]
mov esi, 0x1606
mov eax, ecx
test ecx, ecx
cdq
mov dword [esp + 0x14], eax
mov eax, 0x3e06
cmovns esi, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], esi
push ecx
lea eax, [esp + 0x18]
mov byte [esp + 0xe4], 0xc
push eax
mov edx, str.noticeTimes
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x14]
call fcn.004305d0
mov eax, dword [edi + 0xdc]
mov ecx, 0x3a06
test eax, 0x80000000
mov dword [esp + 0x14], eax
mov eax, 0x3e06
mov dword [esp + 0x18], 0
cmove ecx, eax
mov dword [esp + 0x20], ecx
push ecx
lea eax, [esp + 0x18]
mov byte [esp + 0xe4], 0xd
push eax
mov edx, str.noticeHash
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 2
lea ecx, [esp + 0x14]
call fcn.004305d0
xorps xmm0, xmm0
mov dword [esp + 0x40], 3
xor eax, eax
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x3c], eax
mov byte [esp + 0xe0], 0xe
lea ecx, [esp + 0x60]
movdqu xmm0, xmmword [edi + 0x58]
mov edx, dword [edi + 0x68]
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.004d3800
add esp, 0x10
lea eax, [esp + 0x60]
mov byte [esp + 0xe0], 0xf
add edi, 0x118
push eax
mov ecx, edi
call fcn.00436f50
mov esi, eax
cmp esi, dword [edi]
je 0x4d4b70
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00436e30
test al, al
je 0x4d4b9c
lea eax, [esp + 0x60]
push ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, edi
call fcn.004d8950
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [esp + 0x18]
push eax
call fcn.004d8720
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x28]
add eax, 0xe8
cmp ecx, eax
je 0x4d4bb6
push 0xffffffffffffffff
push 0
push eax
call fcn.00413280
lea eax, [esp + 0x60]
mov ecx, edi
push eax
call fcn.00436f50
mov esi, eax
cmp esi, dword [edi]
je 0x4d4bda
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00436e30
test al, al
je 0x4d4c06
lea eax, [esp + 0x60]
push ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, edi
call fcn.004d8950
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [esp + 0x18]
push eax
call fcn.004d8720
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x40]
add eax, 0x100
cmp ecx, eax
je 0x4d4c20
push 0xffffffffffffffff
push 0
push eax
call fcn.00413280
mov edi, dword [edi]
mov esi, dword [edi]
cmp esi, edi
je 0x4d4e3f
lea esp, [esp]
lea eax, [esi + 0x10]
mov dword [esp + 0x50], 3
xorps xmm0, xmm0
mov dword [esp + 0x10], eax
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], 0
lea edx, [eax + 0x18]
mov dword [esp + 0xb4], 0
mov byte [esp + 0xe0], 0x11
cmp dword [edx + 0x14], 8
jb 0x4d4c6e
mov edx, dword [edx]
push ecx
lea ecx, [esp + 0xac]
call fcn.0044e270
lea eax, [esp + 0xac]
mov edx, str.keyboardId
push eax
lea ecx, [esp + 0x4c]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 0x10
lea ecx, [esp + 0xa8]
call fcn.004305d0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], 0
lea edx, [ecx + 0x30]
mov byte [esp + 0xe0], 0x12
cmp dword [edx + 0x14], 8
jb 0x4d4cc7
mov edx, dword [edx]
push ecx
lea ecx, [esp + 0x28]
call fcn.0044e270
lea eax, [esp + 0x28]
mov edx, str.joystickId
push eax
lea ecx, [esp + 0x4c]
call fcn.0044e340
add esp, 8
mov byte [esp + 0xe0], 0x10
lea ecx, [esp + 0x24]
call fcn.004305d0
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x4d4d08
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
cmp byte [ecx], 0
mov eax, ecx
je 0x4d4d16
nop
inc eax
cmp byte [eax], 0
jne 0x4d4d10
sub eax, ecx
mov dword [esp + 0x20], 0x300005
mov dword [esp + 0xc], eax
inc eax
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x38], eax
jb 0x4d4da2
test eax, eax
jne 0x4d4d83
mov eax, 0x10
push 0x200
mov dword [esp + 0x40], eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov ecx, eax
add esp, 4
mov dword [esp + 0x34], ecx
jmp 0x4d4da6
add eax, eax
mov dword [esp + 0x3c], eax
shl eax, 5
push eax
push dword [esp + 0x38]
call dword [sym.imp.MSVCR120.dll_realloc]
mov ecx, eax
add esp, 8
mov dword [esp + 0x34], ecx
jmp 0x4d4da6
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
movdqu xmm0, xmmword [esp + 0x14]
inc dword [esp + 0x38]
shl eax, 5
mov dword [esp + 0x20], 0
movdqu xmmword [eax + ecx], xmm0
movdqu xmm0, xmmword [esp + 0x44]
movdqu xmmword [eax + ecx + 0x10], xmm0
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], 0
call fcn.004305d0
lea ecx, [esp + 0x44]
mov byte [esp + 0xe0], 0xf
call fcn.004305d0
cmp byte [esi + 0xd], 0
jne 0x4d4e37
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4d4e1c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4d4e37
jmp 0x4d4e10
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4d4e10
jmp 0x4d4e37
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4d4e35
cmp esi, dword [eax + 8]
jne 0x4d4e35
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4d4e25
mov esi, eax
cmp esi, edi
jne 0x4d4c30
push ecx
lea eax, [esp + 0x38]
mov edx, str.resolutionRelatives
push eax
lea ecx, [esp + 0x80]
call fcn.0044e340
add esp, 8
lea edx, [esp + 0xb8]
lea ecx, [esp + 0x78]
call fcn.0045db30
cmp dword [esp + 0x74], 0x10
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4d4e7f
push dword [esp + 0x60]
call esi
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
mov byte [esp + 0xe0], 2
call fcn.004305d0
mov byte [esp + 0xe0], 0
push dword [esp + 0x90]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push dword [esp + 0x8c]
call esi
add esp, 4
lea ecx, [esp + 0x78]
call fcn.004305d0
cmp dword [esp + 0xcc], 8
jb 0x4d4ee8
push dword [esp + 0xb8]
call esi
add esp, 4
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.005f24e0
mov esp, ebp
pop ebp
ret