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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x589da2
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp dword [esi + 0xac], 3
je 0x404aec
call fcn.00404b10
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x80], ebx
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x404ad0
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x404acc
mov dword [esp + 0x18], ebx
push ebx
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x404ab4
lea esp, [esp]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0055ee20
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x5c]
push 0x5ebce8
push eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
call fcn.00409f40
add esp, 0x10
test eax, eax
je 0x404a81
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x14], eax
je 0x404707
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push 0x5e8ce8
push ecx
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x80], 2
je 0x404a6d
mov esi, dword [0x654cb4]
cmp esi, ebx
jne 0x40472d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [0x654cb8]
cmp ecx, ebx
mov dword [esp + 0x2c], ecx
jne 0x404749
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ecx
push eax
call edx
xor edi, edi
cmp dword [esp + 0x38], ebx
jbe 0x404a69
mov eax, dword [esp + 0x14]
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x4c], ebx
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x404a5c
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040a190
push str.Sound
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 3
call fcn.0040a190
push 0x5e8544
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 4
call fcn.0040a190
cmp esi, 0xffffffff
mov byte [esp + 0x80], 5
je 0x40483d
mov edx, dword [esp + 0x28]
xor edx, esi
test edx, 0x3ff
jne 0x40483d
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x34]
mov eax, dword [edx - 0xc]
cmp ecx, eax
jle 0x40483d
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
call fcn.00407f50
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
or dword [esp + 0x10], 1
push ecx
push eax
call fcn.00472d17
add esp, 8
test eax, eax
jne 0x40483d
mov bl, 1
jmp 0x40483f
xor bl, bl
test byte [esp + 0x10], 1
je 0x40486b
mov eax, dword [esp + 0x48]
and dword [esp + 0x10], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40486b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x404885
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 1
push edi
push eax
call edx
test eax, eax
jl 0x404885
or esi, 0xffffffff
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x404936
mov ecx, dword [esp + 0x28]
xor ecx, eax
test ecx, 0x3ff
jne 0x404936
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x24]
mov eax, dword [edx - 0xc]
cmp ecx, eax
jle 0x404936
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
call fcn.00407f50
mov byte [esp + 0x80], 6
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
or dword [esp + 0x10], 2
push ecx
push eax
call fcn.00472d17
add esp, 8
test eax, eax
jne 0x404936
mov edx, dword [esp + 0x24]
mov eax, dword [edx - 0xc]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
call fcn.00407f20
mov dword [esp + 0x80], 7
or dword [esp + 0x10], 4
mov ecx, eax
call fcn.004086c0
mov ecx, eax
call fcn.00408710
mov eax, dword [eax]
push 0x5e8aac
push eax
call fcn.00472d17
add esp, 8
test eax, eax
je 0x404936
mov bl, 1
jmp 0x404938
xor bl, bl
mov dword [esp + 0x80], 6
test byte [esp + 0x10], 4
je 0x40496f
mov eax, dword [esp + 0x4c]
and dword [esp + 0x10], 0xfffffffb
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40496f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 5
test byte [esp + 0x10], 2
je 0x4049a6
mov eax, dword [esp + 0x50]
and dword [esp + 0x10], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4049c5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 1
push edi
push eax
call edx
test eax, eax
jl 0x4049c5
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4049d3
push eax
call fcn.00557e20
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4049e2
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [esp + 0x80], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
add edi, 1
cmp edi, dword [esp + 0x38]
jb 0x404766
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x80], 1
je 0x404a81
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x404a95
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x4046a0
mov esi, dword [ebp + 8]
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x404acc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
mov dword [esp + 0x80], 0xffffffff
je 0x404ae7
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
call fcn.00404b10
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4