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

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x3e9]
mov ecx, dword [edi + 0x3af]
mov edx, dword [eax + ecx*4 + 0x5e30]
mov ecx, dword [edi + 0x18b0]
cmp ecx, 0xffffffff
mov dword [esp + 0x18], edx
je 0x4b37a9
push ecx
lea ecx, [eax + 0x5f4b]
call fcn.004be7d0
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x4b3793
mov cl, byte [ebx + 0x188e]
test cl, cl
jne 0x4b3793
lea esi, [ebx + 0xf9]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x94], edx
mov ecx, dword [ecx + 8]
push ecx
mov ecx, dword [edi + 0x3e5]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004afa10
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x18ac]
cmp eax, 3
mov dword [esp + 0x2c], ecx
je 0x4b2f6f
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x2c]
cmp eax, dword [edi + 0x188a]
je 0x4b2f6b
mov dword [edi + 0x18ac], 3
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x18ac]
xor edx, edx
cmp eax, edx
jne 0x4b3034
lea ecx, [edi + 0x143]
sub esp, 0xc
mov edx, esp
mov eax, dword [ebx]
mov esi, dword [ecx]
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, dword [edi + 0x188a]
push edx
push 2
mov ecx, ebx
call dword [eax + 0x1c]
test al, al
je 0x4b368f
mov eax, dword [edi + 0x3e9]
mov dword [edi + 0x18ac], 1
mov ecx, dword [eax + 0x5f2b]
test ecx, ecx
je 0x4b37a9
mov esi, dword [0x4f0140]
call esi
sub eax, dword [0x9305f0]
cmp eax, 0x1388
jb 0x4b37a9
mov eax, dword [edi + 0x3e9]
mov ecx, dword [edi + 0x3af]
cmp ecx, dword [eax + 0x5e2c]
jne 0x4b37a9
mov eax, dword [eax + 0x5f2b]
push str.SoundsH_transfer1.wav
push str.SoundsJSounds.pck
mov ecx, eax
call fcn.00405fa0
test al, al
je 0x4b368f
call esi
mov dword [0x9305f0], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
cmp eax, 1
jne 0x4b30df
push ecx
lea edx, [edi + 0x129]
push ebp
push edx
call fcn.004012e0
add esp, 0xc
test eax, eax
je 0x4b37a9
mov eax, 2
mov dword [edi + 0x363], eax
mov dword [edi + 0x18ac], eax
mov eax, dword [edi + 0x3e9]
mov ecx, dword [eax + 0x5f2b]
test ecx, ecx
je 0x4b37a9
mov esi, dword [0x4f0140]
call esi
sub eax, dword [0x9305f0]
cmp eax, 0x1388
jb 0x4b37a9
mov eax, dword [edi + 0x3e9]
mov ecx, dword [edi + 0x3af]
cmp ecx, dword [eax + 0x5e2c]
jne 0x4b37a9
mov eax, dword [eax + 0x5f2b]
push str.SoundsH_transfer2.wav
push str.SoundsJSounds.pck
mov ecx, eax
call fcn.00405fa0
test al, al
je 0x4b368f
call esi
mov dword [0x9305f0], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
cmp eax, 2
jne 0x4b36b7
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], 0x3f800000
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x80], eax
mov al, byte [edi + 0x3db]
mov dword [esp + 0x7c], ecx
test al, al
je 0x4b31bd
mov eax, dword [edi + 0x18cc]
lea edx, [esp + 0x9c]
push edx
lea edx, [esp + 0x94]
mov ecx, dword [eax]
push edx
mov edx, dword [edi + 0x78]
push edx
push eax
call dword [ecx + 0x7c]
test eax, eax
jne 0x4b368f
lea eax, [esp + 0x78]
push 0x3e32b8c2
lea ecx, [esp + 0x94]
push eax
lea edx, [esp + 0x8c]
push ecx
push edx
call fcn.004ee08a
mov edx, dword [esp + 0xa4]
mov eax, dword [edi + 0x18cc]
push edx
mov edx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x98]
push edx
mov edx, dword [edi + 0x78]
push edx
push eax
call dword [ecx + 0xf0]
test eax, eax
jne 0x4b368f
xor edx, edx
mov eax, dword [edi + 0x357]
lea ecx, [eax + 1]
mov eax, dword [edi + 0x157]
cmp ecx, eax
jl 0x4b31d2
mov ecx, eax
cmp ecx, eax
mov dword [edi + 0x357], ecx
jl 0x4b37a9
cmp dword [edi + 0x18b4], 0xffffffff
je 0x4b37a9
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
mov esi, dword [0x4f0220]
mov dword [esp + 0x24], eax
inc esp
and al, 0x24
mov al, byte [edi + 0x3db]
mov dword [esp + 0xa8], edx
test al, al
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], edx
mov dword [esp + 0x20], ecx
je 0x4b33d0
mov ecx, dword [ebx + 0x3bf]
mov dword [esp + 0x14], edx
fld dword [0x4f0400]
mov dword [esp + 0x10], ecx
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x4b33d0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
call esi
and eax, 0x80000003
jns 0x4b3272
dec eax
or eax, 0xfffffffc
inc eax
add eax, 2
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul dword [0x4f205c]
fstp dword [esp + 0x34]
call esi
cdq
mov ecx, 0x168
idiv ecx
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fmul dword [0x4f1d08]
fld st(0)
fcos
fstp dword [esp + 0x54]
fsin
fstp dword [esp + 0x5c]
call esi
cdq
mov ecx, 0x64
mov dword [esp + 0x64], 0
idiv ecx
push 0x11
push 0x3f7ae148
push 0x40a00000
push 0xb4ffffff
mov dword [esp + 0x38], edx
mov edx, dword [edi + 0x3e9]
fild dword [esp + 0x38]
fld dword [esp + 0x64]
mov ebp, dword [edx + 0x9d]
fmul st(1)
fstp dword [esp + 0x70]
fmul dword [esp + 0x6c]
fld dword [esp + 0x70]
fmul dword [0x4f2394]
fstp dword [esp + 0x7c]
fld dword [esp + 0x74]
fmul dword [0x4f2394]
fstp dword [esp + 0x80]
fmul dword [0x4f2394]
fld dword [esp + 0x7c]
fmul dword [esp + 0x20]
fstp dword [esp + 0x58]
fld dword [esp + 0x80]
fmul dword [esp + 0x20]
fstp dword [esp + 0x5c]
fmul dword [esp + 0x20]
fld dword [esp + 0x58]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x5c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x50]
fadd dword [esp + 0x34]
fstp dword [esp + 0x54]
call esi
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4b3364
dec eax
or eax, 0xfffffffe
inc eax
push eax
call esi
cdq
mov ecx, 0xa
idiv ecx
mov ecx, dword [esp + 0x44]
lea edx, [edx + edx*4]
shl edx, 3
push edx
mov edx, dword [esp + 0x4c]
sub esp, 0xc
mov eax, esp
sub esp, 0xc
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, esp
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [edx], eax
mov eax, dword [esp + 0x74]
mov dword [edx + 4], ecx
mov ecx, ebp
mov dword [edx + 8], eax
call fcn.0049f280
test al, al
je 0x4b368f
inc dword [esp + 0x14]
fild dword [esp + 0x14]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x4b3264
xor edx, edx
mov eax, dword [edi + 0x3e9]
mov ecx, dword [eax + 0x5f2b]
cmp ecx, edx
je 0x4b3407
mov edx, dword [eax + 0x5e2c]
mov eax, dword [edi + 0x3af]
cmp edx, eax
jne 0x4b3407
push str.SoundsRemove.wav
push str.SoundsJSounds.pck
call fcn.00405fa0
test al, al
je 0x4b368f
lea eax, [esp + 0xa8]
push 1
push eax
lea eax, [edi + 0x18b4]
lea ecx, [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00498000
mov edx, eax
mov ebp, dword [ebx]
push 0
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x24], ecx
mov edx, dword [edx + 8]
push edx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x34], edx
call dword [ebp + 0x54]
test al, al
je 0x4b368f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x94]
test al, al
je 0x4b368f
mov edx, dword [ebx]
xor ebp, ebp
push ebp
mov ecx, ebx
call dword [edx + 0x9c]
test al, al
je 0x4b368f
mov eax, dword [ebx]
push 0xffffffffffffffff
mov ecx, ebx
call dword [eax + 0x30]
mov ecx, dword [ebx + 0x3bf]
mov dword [esp + 0x14], ebp
fld dword [0x4f0400]
mov dword [esp + 0x10], ecx
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x4b3612
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebp
mov ebx, ebp
call esi
and eax, 0x80000003
jns 0x4b34bb
dec eax
or eax, 0xfffffffc
inc eax
add eax, 2
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul dword [0x4f205c]
fstp dword [esp + 0x40]
call esi
cdq
mov ecx, 0x168
idiv ecx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmul dword [0x4f1d08]
fld st(0)
fcos
fstp dword [esp + 0x48]
fsin
fstp dword [esp + 0x50]
call esi
cdq
mov ecx, 0x64
mov dword [esp + 0x70], 0
idiv ecx
push 0x11
push 0x3f7ae148
push 0x40a00000
push 0xb4ffffff
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0x3e9]
fild dword [esp + 0x28]
fld dword [esp + 0x58]
mov ebp, dword [edx + 0x9d]
fmul st(1)
fstp dword [esp + 0x7c]
fmul dword [esp + 0x60]
fld dword [esp + 0x7c]
fmul dword [0x4f2394]
fstp dword [esp + 0x70]
fld dword [esp + 0x80]
fmul dword [0x4f2394]
fstp dword [esp + 0x74]
fmul dword [0x4f2394]
fld dword [esp + 0x70]
fmul dword [esp + 0x20]
fstp dword [esp + 0x64]
fld dword [esp + 0x74]
fmul dword [esp + 0x20]
fstp dword [esp + 0x68]
fmul dword [esp + 0x20]
fld dword [esp + 0x64]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x40]
fld dword [esp + 0x68]
fadd dword [esp + 0x30]
fstp dword [esp + 0x44]
fadd dword [esp + 0x34]
fstp dword [esp + 0x48]
call esi
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4b35aa
dec eax
or eax, 0xfffffffe
inc eax
push eax
call esi
cdq
mov ecx, 0xa
idiv ecx
mov ecx, dword [esp + 0x54]
lea edx, [edx + edx*4]
shl edx, 3
push edx
mov edx, dword [esp + 0x5c]
sub esp, 0xc
mov eax, esp
sub esp, 0xc
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x64]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, ebp
call fcn.0049f280
test al, al
je 0x4b368f
inc dword [esp + 0x14]
fild dword [esp + 0x14]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x4b34ad
xor ebp, ebp
mov edx, dword [edi + 0x3e9]
or eax, 0xffffffff
mov dword [edi + 0x357], ebp
mov dword [edi + 0x18b0], eax
mov dword [edi + 0x363], eax
mov dword [edi + 0x18ac], ebp
cmp dword [edx + 0x5f2b], ebp
je 0x4b37a9
mov esi, dword [0x4f0140]
call esi
sub eax, dword [0x9305f0]
cmp eax, 0x1388
jb 0x4b37a9
mov eax, dword [edi + 0x3e9]
mov ecx, dword [edi + 0x3af]
cmp ecx, dword [eax + 0x5e2c]
jne 0x4b37a9
mov eax, dword [eax + 0x5f2b]
push str.SoundsH_transfer4.wav
push str.SoundsJSounds.pck
mov ecx, eax
call fcn.00405fa0
test al, al
jne 0x4b3020
add edi, 4
push str.TickTransfer__:_Error_occurs.
push edi
mov dword [0x8210d4], 1
call fcn.004331c0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
cmp eax, 3
jne 0x4b37a9
push ecx
lea edx, [edi + 0x129]
push ebp
push edx
call fcn.004012e0
add esp, 0xc
test eax, eax
jne 0x4b3705
or ecx, 0xffffffff
mov dword [edi + 0x357], eax
mov dword [edi + 0x18b0], ecx
mov dword [edi + 0x363], ecx
mov dword [edi + 0x18ac], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test al, al
jne 0x4b37a9
push 0x145
push str.D:DevProjectsJMain1SourceVTransfr.cpp
call fcn.00401130
cdq
mov ecx, 9
push 0x146
idiv ecx
push str.D:DevProjectsJMain1SourceVTransfr.cpp
lea esi, [edx + ebp - 4]
call fcn.00401130
cdq
mov ecx, 9
mov ebp, dword [ebx]
idiv ecx
mov eax, dword [esp + 0x3c]
add esp, 0x10
lea ecx, [esp + 0x90]
lea eax, [eax + edx - 4]
push eax
push esi
push ecx
mov ecx, dword [edi + 0x3e5]
call fcn.004afa90
mov ecx, dword [eax]
sub esp, 0xc
mov edx, esp
push 0xffffffffffffffff
push 2
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, ebx
mov dword [edx + 8], eax
call dword [ebp + 0x1c]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
mov dword [edi + 0x363], 0xffffffff
mov dword [edi + 0x18ac], eax
mov dword [edi + 0x357], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xa8
ret