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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d9a87
push eax
mov eax, 0x3298
mov dword fs:[0], esp
call fcn.004d3780
mov edx, dword [0x4eb4c0]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x38], ecx
xor ebp, ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x10], edx
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x12aa]
mov word [esp + 0x12a8], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5a]
mov word [esp + 0x58], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [esp + 0x32b8]
mov dword [esp + 0x32b0], ebp
test al, 1
mov dword [esp + 0x54], 0x104
mov dword [esp + 0x44], 0x1000
mov dword [esp + 0x3c], ebp
je 0x48a472
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x262]
mov word [esp + 0x260], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or eax, 0xffffffff
mov ebx, 1
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x38]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 0x260]
push 0x823
mov dword [eax + 0x94], ebp
mov edx, dword [0x6dcf80]
push ecx
push 0x46
push edx
mov byte [esp + 0x32c0], bl
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x260]
push eax
push 0x4faa34
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x40], ebx
call fcn.004b0350
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.MSVCRT.dll__wtoi]
push edx
mov esi, eax
call ebp
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0048e3e0
lea ecx, [esp + 0x40]
push ecx
call fcn.0048e6c0
mov edx, dword [esp + 0x54]
add esp, 0x1c
lea ecx, [esp + 0x18]
mov eax, dword [edx + 0x8c]
lea esi, [edx + 0x84]
push ecx
push ebx
push eax
mov ecx, esi
call fcn.0043a920
mov eax, dword [0x6dcf80]
lea edx, [esp + 0x260]
push 0x823
push edx
push 0x47
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], ebx
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x260]
push ecx
push 0x4faa34
push edx
call fcn.004b0350
mov ebx, eax
mov eax, dword [esp + 0x1c]
push eax
call ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
push ecx
push ebx
call fcn.0048e3e0
lea edx, [esp + 0x40]
push edx
call fcn.0048e6c0
mov eax, dword [esi + 8]
add esp, 0x1c
lea ecx, [esp + 0x18]
mov ebx, 1
push ecx
push ebx
push eax
mov ecx, esi
call fcn.0043a920
mov eax, dword [0x6dcf80]
lea edx, [esp + 0x260]
push 0x823
push edx
push 0xc35b
push eax
mov dword [esp + 0x28], 2
mov dword [esp + 0x44], ebx
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x260]
push ecx
push 0x4faa34
push edx
call fcn.004b0350
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
push ecx
push edi
call fcn.0048e3e0
mov eax, dword [esi + 8]
add esp, 0x18
lea edx, [esp + 0x18]
mov ecx, esi
push edx
push ebx
push eax
call fcn.0043a920
mov dword [esp + 0x3c], 2
mov eax, dword [esp + 0x30]
mov edx, dword [0x4eb24c]
mov byte [esp + 0x32b0], 3
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48a43f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48a43f
mov edx, dword [esp + 0x30]
lea eax, [edx - 0xc]
push eax
call fcn.004d3765
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00407750
lea ecx, [esp + 0x28]
mov byte [esp + 0x32b0], 2
call fcn.00407750
lea ecx, [esp + 0x24]
mov byte [esp + 0x32b0], 0
call fcn.00407750
mov esi, dword [esp + 0x50]
xor ebp, ebp
jmp 0x48a477
mov ebx, 1
test byte [esp + 0x32b8], 2
je 0x48a80e
mov eax, dword [0x4fde48]
mov dword [esp + 0x40], ebp
cmp eax, ebp
jne 0x48a4a7
lea eax, [esp + 0x40]
push eax
push 0x4faa3c
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [esp + 0x44]
push ebp
lea edx, [esp + 0x12ac]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x60]
push eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x68]
push ecx
push edx
push ebp
xor edi, edi
push 0x4faa3c
push eax
mov dword [esp + 0x6c], edi
call fcn.004ae5c0
add esp, 0x24
test eax, eax
jne 0x48a7c2
mov dword [esp + 0x50], ebx
cmp dword [esp + 0x4c], ebx
jne 0x48a772
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x48a772
mov eax, dword [0x4eb4c0]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea edx, [esp + 0x58]
add edi, 4
test edx, edx
mov byte [esp + 0x32b0], 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x14
jne 0x48a545
xor ebx, ebx
jmp 0x48a552
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push ebx
lea ecx, [esp + 0x28]
call fcn.004076f0
test eax, eax
je 0x48a58a
mov edi, dword [esp + 0x24]
lea eax, [ebx + ebx]
mov ecx, eax
lea esi, [esp + 0x58]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x24]
mov word [eax + edx], bp
lea eax, [esp + 0x10]
lea ecx, [esp + 0x12a8]
push eax
push 0x4faa34
push ecx
mov dword [esp + 0x40], 2
call fcn.004b0350
mov edx, dword [0x4eb4c0]
mov edi, eax
mov eax, 0x4faa30
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], edx
je 0x48a612
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebp
je 0x48a612
push esi
lea ecx, [esp + 0x18]
call fcn.00407580
test eax, eax
je 0x48a612
mov ecx, dword [esp + 0x14]
lea eax, [esi + 1]
cmp eax, ebp
mov esi, ecx
jne 0x48a5ed
cmp ecx, ebp
jne 0x48a607
push eax
push ecx
push 0xffffffffffffffff
push 0x4faa30
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebp
jle 0x48a607
mov word [esi + eax*2 - 2], bp
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004107f0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
mov edx, dword [0x4eb24c]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48a65d
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x48a663
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.004d3765
add esp, 4
jmp 0x48a663
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor eax, eax
lea ecx, [esp + 0x28]
test bl, bl
push ecx
push 0x4faa34
setne al
push edi
mov dword [esp + 0x2c], eax
call fcn.004b0350
lea edx, [esp + 0x3c]
push edx
push 0x4faa34
push eax
call fcn.004b0350
lea ecx, [esp + 0x44]
push ecx
push 0x4faa34
push eax
call fcn.004b0350
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x60]
inc edx
inc ecx
mov dword [esp + 0x6c], edx
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x64], ecx
call fcn.0048e6c0
mov eax, dword [esp + 0x60]
add esp, 0x28
lea edx, [esp + 0x18]
lea ecx, [eax + 0x84]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.0043a920
mov eax, dword [esp + 0x30]
mov edx, dword [0x4eb24c]
mov byte [esp + 0x32b0], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48a70a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x48a70a
mov edx, dword [esp + 0x30]
add edx, 0xfffffff4
push edx
call fcn.004d3765
add esp, 4
mov eax, dword [esp + 0x2c]
mov edx, dword [0x4eb24c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48a735
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x48a735
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.004d3765
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x4eb24c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48a760
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x48a760
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.004d3765
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00407750
mov edi, dword [esp + 0x48]
mov ebx, 1
lea eax, [esp + 0x44]
push ebp
lea ecx, [esp + 0x12ac]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x60]
push edx
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x68]
push eax
push ecx
push edi
push 0x4faa3c
push edx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], 0x104
mov dword [esp + 0x68], 0x1000
call fcn.004ae5c0
add esp, 0x24
test eax, eax
je 0x48a4e9
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
cmp eax, ebp
je 0x48a7d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x3c], ebp
jne 0x48a7f1
mov edi, dword [esp + 0x38]
push ebx
mov ecx, edi
call fcn.0048a1c0
add edi, 0x94
push reloc.DSOUND.dll_DirectSoundCreate
push edi
jmp 0x48a800
mov eax, dword [esp + 0x38]
push reloc.DSOUND.dll_DirectSoundCreate
add eax, 0x94
push eax
push str.SearchSel
push ebp
call fcn.004ae260
add esp, 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [0x4eb24c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48a83d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48a83d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004d3765
add esp, 4
mov ecx, dword [esp + 0x32a8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x32a4
ret 4