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

Disassembly:
sub esp, 0x80
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov edx, dword [esp + 0x34]
mov eax, dword [ebp + 0x3e1]
mov ecx, dword [ebp + 0x3e9]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [ecx + 0x5f47]
mov dword [esp + 0x44], eax
mov eax, 3
mov dword [esp + 0x28], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x74]
push esi
sub eax, 4
mov dword [esp + 0x40], 0
mov dword [esp + 0x74], eax
mov ecx, dword [ecx + 0x78]
sub ecx, 4
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x94]
push edi
mov dword [esp + 0x50], edx
lea edx, [esp + 0x80]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
push eax
push ecx
push eax
push ecx
push edx
call fcn.004012b0
add esp, 0x14
mov dword [esp + 0x28], 0
lea eax, [esp + 0x70]
lea ecx, [esp + 0x80]
push eax
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.004011d0
add esp, 0xc
test eax, eax
je 0x48ef99
push 0x135
push str.D:DevProjectsJMain1SourceVLynx.cpp
call fcn.00401130
add esp, 8
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x48edff
dec eax
or eax, 0xfffffffe
inc eax
jne 0x48ee1c
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x64]
inc eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 1
jmp 0x48ee37
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
dec edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], 0xffffffff
mov ebx, ecx
push 0x141
push str.D:DevProjectsJMain1SourceVLynx.cpp
call fcn.00401130
add esp, 8
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x48ee55
dec eax
or eax, 0xfffffffe
inc eax
jne 0x48ee74
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 1
lea esi, [ecx + 1]
mov dword [esp + 0x1c], esi
jmp 0x48ee8f
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0xffffffff
mov esi, eax
cmp ebx, dword [esp + 0x14]
je 0x48ef71
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
cmp eax, esi
mov edi, eax
je 0x48ef5f
cmp ebx, dword [esp + 0x18]
je 0x48eecd
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 0x24]
cmp ebx, edx
je 0x48eecd
cmp edi, eax
je 0x48eecd
mov eax, esi
sub eax, ecx
cmp edi, eax
jne 0x48ef4d
mov ecx, dword [esp + 0x2c]
push 0
push ebx
push edi
call fcn.00438cd0
test al, 0x19
jne 0x48ef4d
mov ecx, dword [ebp + 0x3e9]
mov esi, dword [ecx + 0x4689b]
test esi, esi
je 0x48efc3
cmp word [esi + 0x36b], 0x35
je 0x48ef07
mov ecx, esi
call fcn.004be220
mov esi, eax
jmp 0x48eeea
lea edx, [esi + 0xf9]
mov eax, dword [esi + 0xf9]
mov ecx, dword [edx + 4]
mov dword [esp + 0x58], ecx
mov ecx, dword [edx + 8]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [ebp + 0x3e5]
push eax
push edx
call fcn.004afa10
mov ecx, eax
mov eax, dword [ecx]
cmp eax, edi
mov ecx, dword [ecx + 4]
jne 0x48ef3e
cmp ecx, ebx
je 0x48ef49
mov ecx, esi
call fcn.004be220
mov esi, eax
jmp 0x48eeea
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add edi, ecx
cmp edi, esi
jne 0x48eeab
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add ebx, edi
cmp ebx, edx
jne 0x48eea1
push 1
lea edx, [esp + 0x84]
push 1
push edx
call fcn.00401240
mov eax, dword [esp + 0x34]
add esp, 0xc
inc eax
cmp eax, 0x32
mov dword [esp + 0x28], eax
jl 0x48edbf
jmp 0x48efe7
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x3c]
mov ecx, eax
pop edi
pop esi
pop ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
pop ebx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 8], edx
add esp, 0x80
ret 8
mov ecx, dword [esp + 0x30]
push ebx
lea eax, [esp + 0x58]
push edi
push eax
call fcn.004afa90
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x48]
mov ecx, eax
pop edi
pop esi
pop ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x40]
pop ebx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 8], edx
add esp, 0x80
ret 8