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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2fc
mov eax, dword [0x4e22e4]
xor eax, esp
mov dword [esp + 0x2f8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x28]
push ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x2c]
push esi
push edi
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x30]
push 0x44
mov dword [esp + 0x88], eax
xor ebx, ebx
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.00401f80
xor eax, eax
mov word [esp + 0x18], ax
lea edi, [esp + 0x1a]
stosw word es:[edi], ax
mov word [esp + 0x24], ax
add esp, 0xc
lea edi, [esp + 0x1a]
stosw word es:[edi], ax
mov word [esp + 0x14], ax
lea edi, [esp + 0x16]
push 0x4f
stosw word es:[edi], ax
lea eax, [esp + 0xa5]
push ebx
push eax
mov byte [esp + 0xac], bl
call fcn.00401f80
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [esp + 0x1fd]
push ebx
push eax
mov byte [esp + 0x204], bl
call fcn.00401f80
xor eax, eax
lea edi, [esp + 0x95]
mov byte [esp + 0x94], bl
stosd dword es:[edi], eax
lea edi, [esp + 0xa5]
mov byte [esp + 0xa4], bl
stosd dword es:[edi], eax
add esp, 0xc
lea edi, [esp + 0x91]
mov byte [esp + 0x90], bl
stosd dword es:[edi], eax
cmp dword [0x4fc61c], ebx
je 0x489c1d
mov dword [0x4fc61c], ebx
mov dword [ebp + 0x14], 1
mov edi, 0x104
cmp dword [esp + 0x10], ebx
je 0x489c3f
push dword [esp + 0x10]
mov ecx, edi
lea eax, [esp + 0x1fc]
call fcn.00438aa8
pop ecx
mov dword [esp + 0x10], eax
call fcn.00494e18
mov dword [esp + 0x20], eax
call fcn.00494ead
mov edx, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov dword [esp + 0x58], ebx
call fcn.00439c75
test eax, eax
jne 0x489d18
push esi
lea eax, [esp + 0xf5]
push ebx
push eax
mov byte [esp + 0xfc], bl
call fcn.00401f80
add esp, 0xc
push dword [esp + 0x10]
push ebx
push ebx
call fcn.0045500f
pop ecx
pop ecx
push eax
push str._sSoundsNotifyWin_s
lea eax, [esp + 0xfc]
push edi
push eax
call fcn.004392ef
lea eax, [esp + 0x104]
add esp, 0x14
push eax
call fcn.0049c3b2
pop ecx
mov dword [esp + 0x58], eax
cmp eax, ebx
jne 0x489d18
push dword [esp + 0x10]
call fcn.0049c3b2
pop ecx
mov dword [esp + 0x58], eax
cmp eax, ebx
jne 0x489d18
push str..wav
mov eax, edi
lea esi, [esp + 0xf4]
call fcn.00439c34
mov eax, edi
lea esi, [esp + 0x1fc]
mov dword [esp], str..wav
call fcn.00439c34
pop ecx
lea eax, [esp + 0xf0]
push eax
call fcn.0049c3b2
pop ecx
mov dword [esp + 0x58], eax
cmp eax, ebx
jne 0x489d18
push dword [esp + 0x10]
call fcn.0049c3b2
pop ecx
mov dword [esp + 0x58], eax
cmp dword [ebp + 0x14], ebx
je 0x489d5a
fld1
push ebx
fst dword [esp + 0x3c]
push ebx
fstp dword [esp + 0x44]
call fcn.0045500f
push eax
push str._sSoundsClick1.wav
push ebx
call fcn.004391c4
add esp, 0x14
push eax
call fcn.0049c158
pop ecx
push ebx
push ebx
mov dword [esp + 0x5c], eax
call fcn.0045500f
push eax
push str._sSoundsSmallClick.wav
jmp 0x489eef
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], ebx
je 0x489e92
dec eax
je 0x489e2d
fld dword [0x4def74]
fstp dword [esp + 0x38]
fld dword [0x4def70]
fstp dword [esp + 0x3c]
call fcn.0049b58c
push ebx
push ebx
call fcn.0045500f
push eax
push str._sSoundsNotifyWinWinInAlert.wav
push ebx
call fcn.004391c4
add esp, 0x14
push eax
call fcn.0049c158
pop ecx
push ebx
push ebx
mov dword [esp + 0x5c], eax
call fcn.0045500f
push eax
push str._sSoundsNotifyWinIllegalKey.wav
push ebx
call fcn.004391c4
add esp, 0x14
push eax
call fcn.0049c158
pop ecx
push ebx
push ebx
mov dword [esp + 0x58], eax
call fcn.0045500f
push eax
push str._sSoundsNotifyWinWinOutAlert.wav
push ebx
call fcn.004391c4
add esp, 0x14
push eax
call fcn.0049c158
pop ecx
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x58], ebx
jne 0x489f03
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x489e08
call fcn.00438ae8
test eax, eax
jne 0x489f03
push ebx
push ebx
call fcn.0045500f
push eax
push str._sSoundsNotifyWinUhOh_.wav
push ebx
call fcn.004391c4
add esp, 0x14
push eax
call fcn.0049c158
mov dword [esp + 0x5c], eax
jmp 0x489f02
push ebx
push ebx
fld dword [0x4def64]
fstp dword [esp + 0x40]
fld dword [0x4def80]
fstp dword [esp + 0x44]
call fcn.0045500f
push eax
push str._sSoundsNotifyWinWinIn.wav
push ebx
call fcn.004391c4
add esp, 0x14
push eax
call fcn.0049c158
pop ecx
push ebx
push ebx
mov dword [esp + 0x5c], eax
call fcn.0045500f
push eax
push str._sSoundsNotifyWinIllegalKey.wav
push ebx
call fcn.004391c4
add esp, 0x14
push eax
call fcn.0049c158
pop ecx
push ebx
push ebx
mov dword [esp + 0x58], eax
call fcn.0045500f
push eax
push str._sSoundsNotifyWinWinOut.wav
jmp 0x489eef
dec eax
push ebx
push ebx
jne 0x489e2f
fld dword [0x4def70]
fst dword [esp + 0x40]
fstp dword [esp + 0x44]
call fcn.0045500f
push eax
mov esi, str._sSoundsNotifyWinVeryLightWhoosh.wav
push esi
push ebx
call fcn.004391c4
add esp, 0x14
push eax
call fcn.0049c158
pop ecx
push ebx
push ebx
mov dword [esp + 0x5c], eax
call fcn.0045500f
push eax
push str._sSoundsNotifyWinIllegalKey.wav
push ebx
call fcn.004391c4
add esp, 0x14
push eax
call fcn.0049c158
pop ecx
push ebx
push ebx
mov dword [esp + 0x58], eax
call fcn.0045500f
push eax
push esi
push ebx
call fcn.004391c4
add esp, 0x14
push eax
call fcn.0049c158
mov dword [esp + 0x60], eax
pop ecx
mov dword [esp + 0x10], ebx
call fcn.004962aa
test eax, eax
je 0x489f18
mov dword [esp + 0x10], 1
push str.Input.c
push 0x85f
xor ecx, ecx
call fcn.0049c7e1
pop ecx
mov edi, eax
pop ecx
mov dword [esp + 0x28], edi
cmp dword [esp + 0x1c], ebx
je 0x489f4b
push dword [esp + 0x1c]
push 0x4b3350
push edi
call fcn.0049d11e
add esp, 0xc
jmp 0x489f58
push 0x4afe8c
push edi
call fcn.0049d11e
pop ecx
pop ecx
push dword [esp + 0x84]
mov esi, dword [esp + 0x80]
mov eax, edi
call fcn.0049d098
pop ecx
mov ebx, edi
call fcn.0049ccf5
mov esi, edi
lea ebx, [eax + 4]
call fcn.0049cd4e
mov ecx, dword [esp + 0x24]
lea esi, [eax + 3]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x44], eax
test ecx, ecx
jne 0x489ffb
call fcn.00494e18
lea edi, [eax + ebx]
call fcn.0040237f
cdq
idiv edi
mov eax, dword [esp + 0x74]
add eax, 2
mov word [esp + 0xe], ax
sub edx, ebx
mov word [esp + 0xc], dx
call fcn.00494e18
lea edi, [eax + ebx]
call fcn.0040237f
cdq
idiv edi
sub edx, ebx
cmp dword [esp + 0x10], 0
mov word [esp + 0x14], dx
je 0x489fec
push 0xfffffffffffffffe
pop eax
sub eax, esi
jmp 0x489ff1
mov ax, word [esp + 0xe]
mov word [esp + 0x16], ax
jmp 0x48a0fa
movzx edi, word [ecx]
mov dword [esp + 0x1c], edi
test di, di
jns 0x48a00e
mov eax, 0xffff8000
jmp 0x48a041
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsx edx, di
mov edi, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
cmp edx, eax
jle 0x48a03a
push 2
pop eax
sub eax, ebx
jmp 0x48a041
mov eax, dword [esp + 0x20]
add eax, 2
movzx ecx, word [ecx + 2]
mov word [esp + 0xc], ax
mov dword [esp + 0x20], ecx
test cx, cx
jns 0x48a05f
mov eax, 0xffff8000
mov word [esp + 0xe], ax
jmp 0x48a094
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
movsx eax, cx
mov ecx, dword [esp + 0x74]
sar ebx, 1
add ebx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x48a088
push 2
pop eax
sub eax, esi
mov word [esp + 0xe], ax
jmp 0x48a090
add ecx, 2
mov word [esp + 0xe], cx
mov ecx, dword [esp + 0x20]
mov eax, 0xffff8000
test di, di
jns 0x48a0a7
mov edx, eax
mov word [esp + 0x18], dx
jmp 0x48a0ac
mov word [esp + 0x18], di
test cx, cx
jns 0x48a0ba
mov edx, eax
mov word [esp + 0x1a], dx
jmp 0x48a0bf
mov word [esp + 0x1a], cx
test di, di
jns 0x48a0c8
mov edx, eax
jmp 0x48a0cd
mov dx, word [esp + 0xc]
mov word [esp + 0x14], dx
test cx, cx
js 0x48a0dc
mov ax, word [esp + 0xe]
cmp dword [esp + 0x10], 0
mov word [esp + 0x16], ax
je 0x48a0f2
push 0xfffffffffffffffe
pop eax
sub eax, esi
mov word [esp + 0x16], ax
lea eax, [esp + 0x18]
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], eax
xor eax, eax
cmp dword [ebp + 0x14], eax
je 0x48a119
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
cmp dword [ebp + 8], eax
je 0x48a1ba
lea eax, [esp + 0x88]
push 0x4af780
push eax
mov dword [esp + 0x48], 0x226
call fcn.00401ba0
mov esi, 0x4af784
lea eax, [esp + 0xa0]
push esi
push eax
call fcn.00401ba0
lea eax, [esp + 0xa0]
push esi
push eax
call fcn.00401ba0
mov dl, byte [0x4e33fa]
lea eax, [esp + 0xa0]
mov dword [esp + 0x84], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x80], eax
movsx eax, dl
add esp, 0x18
call fcn.00438bf5
cmp eax, 0x78
je 0x48a1af
mov byte [esp + 0x88], dl
mov byte [esp + 0x98], dl
mov byte [esp + 0x90], dl
mov dl, byte [0x4e341d]
jmp 0x48a249
mov dword [esp + 0x40], eax
lea eax, [esp + 0x88]
push 0x4af60c
push eax
call fcn.00401ba0
mov esi, 0x4af610
lea eax, [esp + 0xa0]
push esi
push eax
call fcn.00401ba0
lea eax, [esp + 0xa0]
push esi
push eax
call fcn.00401ba0
mov dl, byte [0x4e33fb]
lea eax, [esp + 0xa0]
mov dword [esp + 0x84], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x80], eax
movsx eax, dl
add esp, 0x18
call fcn.00438bf5
cmp eax, 0x78
je 0x48a243
mov byte [esp + 0x88], dl
mov byte [esp + 0x98], dl
mov byte [esp + 0x90], dl
mov dl, byte [0x4e341e]
movsx eax, dl
call fcn.00438bf5
cmp eax, 0x78
je 0x48a25d
mov byte [esp + 0x89], dl
lea ecx, [esp + 0x28]
mov byte [0x4e33fa], 0x78
mov byte [0x4e33fb], 0x78
mov byte [0x4e341d], 0x78
mov byte [0x4e341e], 0x78
call fcn.00453e01
mov esi, eax
mov eax, dword [esp + 0x54]
call fcn.0049b49a
mov eax, dword [esp + 0x50]
call fcn.0049b49a
mov eax, dword [esp + 0x5c]
call fcn.0049b49a
mov eax, dword [esp + 0x58]
call fcn.0049b49a
mov eax, dword [esp + 0x28]
call fcn.0049c95e
mov ecx, dword [esp + 0x304]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret