Function at 0x431160
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4e84c4]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
mov edi, dword [ebp + 8]
push 0x7f00
push 0
mov dword [esp + 0x38], 0x30
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x40], 0x431580
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 6
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], str.WindowClass
call esi
movaps xmm0, xmmword [0x4da8c0]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x30]
push eax
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0xcf0000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push 0
push edi
push 0
push 0
push eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
push eax
push Ordinal_2
push Ordinal_2
push 0xcf0000
push str.MountainStrider
push str.WindowClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push dword [ebp + 0x14]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x18
call fcn.0049c118
xorps xmm0, xmm0
mov dword [0x4ec47c], eax
push esi
push edi
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
call fcn.00431670
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
call esi
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
call esi
mov ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x4312ba
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, dword [esp + 0x14]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4312f4
cmp dword [esp + 0x64], 0x12
je 0x431523
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4312ba
call esi
mov esi, eax
mov ecx, esi
sub ecx, ebx
mov ebx, dword [0x4ec47c]
cmp ecx, 0x1f4
jb 0x431320
imul eax, edi, 0x3e8
xor edx, edx
mov dword [esp + 0x14], esi
div ecx
xor edi, edi
mov dword [ebx], eax
mov dword [esp + 0x10], edi
mov eax, esi
sub eax, dword [esp + 0x18]
cmp eax, 0x10
jb 0x4312b0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 0x18], esi
addsd xmm0, qword [eax*8 + 0x4da930]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x4da6f4]
movss dword [ebx + 4], xmm0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4ec454]
cmp eax, dword [ecx + 8]
jle 0x4313a3
push 0x4ec454
call fcn.0049c29e
add esp, 4
cmp dword [0x4ec454], 0xffffffff
jne 0x4313a3
xorps xmm0, xmm0
push 0x4c7430
movups xmmword [0x4ec458], xmm0
call fcn.0049c5b0
add esp, 4
push 0x4ec454
call fcn.0049c254
add esp, 4
mov edi, dword [0x4ec4bc]
xor esi, esi
mov edx, dword [0x4ec4b8]
mov eax, edi
sub eax, edx
sar eax, 2
test eax, eax
je 0x4313e4
nop dword [eax]
mov ecx, dword [edx + esi*4]
test ecx, ecx
je 0x4313d8
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [0x4ec4bc]
mov edx, dword [0x4ec4b8]
mov eax, edi
inc esi
sub eax, edx
sar eax, 2
cmp esi, eax
jb 0x4313c0
call fcn.00404890
mov ecx, eax
call fcn.00431e70
cmp byte [ebx + 0xc], 0
jne 0x431400
call fcn.00411810
call fcn.004390e0
call fcn.00431080
mov ecx, dword [eax]
test ecx, ecx
je 0x431412
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0xc]
call fcn.00404890
mov ecx, eax
call fcn.004320b0
call fcn.00431080
mov ecx, dword [eax]
test ecx, ecx
je 0x431430
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0x10]
call fcn.00431080
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp dword [ebx + 4], 0
je 0x4314c4
mov ecx, dword [ebx]
test ecx, ecx
je 0x431458
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebx], 0
cmp byte [ebx + 8], 0
je 0x4314b1
mov eax, dword [0x4ec4b0]
xor esi, esi
mov edi, dword [0x4ec4ac]
sub eax, edi
sar eax, 2
test eax, eax
je 0x4314b1
mov ebx, dword [edi + esi*4]
mov edx, str.NoDestroy
lea ecx, [ebx + 0x20]
call fcn.00417570
test al, al
jne 0x43149e
mov byte [esp + 0xf], al
mov ecx, ebx
lea eax, [esp + 0xf]
push eax
call fcn.004289e0
mov edi, dword [0x4ec4ac]
mov eax, dword [0x4ec4b0]
inc esi
sub eax, edi
sar eax, 2
cmp esi, eax
jb 0x431474
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
mov dword [ebx], ecx
mov dword [ebx + 4], 0
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [0x4ec4b0]
mov eax, dword [0x4ec4ac]
sub edi, eax
sar edi, 2
sub edi, 1
js 0x431509
nop dword [eax]
mov esi, dword [eax + edi*4]
cmp byte [esi + 0x3c], 0
je 0x431504
test esi, esi
je 0x431504
mov ecx, esi
call fcn.00428dd0
push 0x4c
push esi
call fcn.0049c10a
mov eax, dword [0x4ec4ac]
add esp, 8
sub edi, 1
jns 0x4314e0
mov eax, dword [0x4ec47c]
mov edi, dword [esp + 0x10]
inc edi
mov dword [esp + 0x10], edi
mov dword [eax + 8], 0
jmp 0x4312b0
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
call fcn.004317f0
mov eax, dword [0x4ec47c]
test eax, eax
je 0x43154e
push 0x18
push eax
call fcn.0049c10a
add esp, 8
mov dword [0x4ec47c], 0
push dword [esp + 0x44]
push str.WindowClass
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049c0fc
mov esp, ebp
pop ebp
ret 0x10