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

Disassembly:
sub esp, 0x34
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x14]
add ecx, eax
mov eax, dword [esi + 0x6c]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edi
jle 0x480813
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x480414
mov ebp, dword [esp + 0x14]
xor edi, edi
mov eax, dword [esi + 0x34]
mov ebx, dword [eax + ebp]
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx]
mov dword [esp + 0x28], ecx
mov ecx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [eax + 0x10]
mov edx, dword [esi + 0x6c]
mov ecx, eax
xor eax, eax
test edx, edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edi
mov byte [esp + 0x13], 0
jle 0x4804aa
and ecx, 0xfffffff0
mov dword [esp + 0x34], ecx
lea ebx, [ebx]
mov ecx, dword [esi + 0x34]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
mov dword [esp + 0x3c], eax
call dword [edx + 0x10]
mov edx, dword [esp + 0x34]
mov ecx, eax
and ecx, 0xfffffff0
cmp ecx, edx
jne 0x480498
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x480490
mov edx, dword [esp + 0x20]
mov byte [esp + 0x13], 1
mov dword [ebx + 0x48], edx
cmp eax, dword [esp + 0x38]
je 0x4804aa
jmp 0x4804a2
cmp dword [esp + 0x3c], eax
je 0x4804a2
inc dword [esp + 0x20]
mov ecx, dword [esi + 0x6c]
inc edi
cmp edi, ecx
jl 0x480460
mov eax, dword [ebx + 8]
and eax, 0xff000000
cmp eax, 0xc0000000
jne 0x4804c7
mov ecx, dword [ebx + 0x48]
mov eax, dword [esi + 0x40]
shl ecx, 6
add ecx, eax
mov dword [ebx + 0x4c], ecx
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x50], eax
mov edx, dword [eax]
and edx, 0xf
lea eax, [eax + edx*4 + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x48052b
mov edx, eax
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov ecx, eax
and ecx, 0xe0000000
cmp ecx, 0x80000000
jne 0x480508
inc dword [esp + 0x1c]
jmp 0x480528
mov ecx, dword [esi + 0x44]
sar eax, 0x10
and eax, 0xff
cmp eax, ecx
jne 0x48051d
inc dword [esp + 0x18]
jmp 0x480528
mov ecx, dword [esi + 4]
mov eax, dword [ecx + eax*4 + 4]
add dword [esp + 0x18], eax
dec edx
jne 0x4804e5
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + ebp]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 8]
push ecx
push edx
push str.Master_CHannel__x__MIXCHIN_ID__x__Num_Fixed_Inputs___d_n
push 0
call fcn.00469210
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + ebp]
mov edi, dword [esp + 0x30]
mov edx, dword [ecx + 8]
push edi
push edx
push str.Master_CHannel__x__Num_3DConnections___d_n
push 0
call fcn.00469210
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + ebp]
mov dword [ecx + 0x2c], edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xa4]
mov edx, dword [eax + 0x78]
lea edi, [edx + ecx*4]
mov edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x3c]
add edx, ecx
mov dword [eax + 0xa4], edx
mov eax, dword [esi + 0x34]
mov eax, dword [eax + ebp]
mov edx, dword [eax + 0x2c]
add esp, 0x24
test edx, edx
mov dword [eax + 0x40], edi
mov dword [eax + 0x28], ecx
mov dword [eax + 0x38], edi
jle 0x4805b0
lea edx, [edi + ecx*4]
mov dword [eax + 0x3c], edx
jmp 0x4805b7
mov dword [eax + 0x3c], 0
mov eax, dword [esp + 0x1c]
add ecx, eax
test ecx, ecx
jle 0x4805c5
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x34]
mov ecx, dword [ecx + ebp]
mov edx, dword [ecx + 0x34]
mov eax, dword [ecx]
mov dword [esp + 0x1c], edx
call dword [eax + 0x10]
mov ecx, dword [esi + 0x34]
mov ecx, dword [ecx + ebp]
mov edx, dword [ecx]
mov edi, dword [esi + 0x50]
call dword [edx + 0x10]
mov ecx, dword [0x82b884]
and eax, 0xe0ffffff
shl edi, 0xb
or eax, edi
push eax
call fcn.00468fc0
mov ebp, eax
xor edi, edi
cmp ebp, edi
je 0x4807cd
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx]
mov eax, dword [edx + 0x2c]
cmp eax, edi
mov dword [esp + 0x40], eax
jne 0x480679
mov ecx, dword [ebx + 0x50]
mov eax, dword [ecx]
add ecx, 4
and eax, 0xf
jle 0x4807f2
mov dword [esp + 0x28], eax
mov edx, dword [esi + 0x34]
mov edi, dword [esp + 0x14]
mov edx, dword [edx + edi]
mov edx, dword [edx + 0x18]
mov eax, dword [ecx]
mov edi, dword [ebx + 0x4c]
mov dword [esp + 0x40], edx
mov edx, eax
sar edx, 0x18
sar eax, 0x10
and edx, 0xf
and eax, 0xf
lea edx, [edi + edx*4]
mov dword [ebp + eax*4 + 0x58], edx
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x98], eax
mov eax, dword [esp + 0x28]
add ecx, 4
dec eax
mov dword [esp + 0x28], eax
jne 0x480631
jmp 0x4807f2
cmp eax, edi
mov dword [esp + 0x20], edi
jle 0x480747
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edi, dword [esi + 0x50]
add ecx, 4
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x4c]
push ecx
shl edi, 0xb
or edi, eax
push edi
push str.3dLookupID___x__SFXOBJOUT_ID__x__n
push 0
call fcn.00469210
mov eax, dword [esi + 0x60]
add esp, 0x10
xor ebx, ebx
test eax, eax
jle 0x4806d2
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + ebx*4]
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, edi
je 0x4807c2
mov eax, dword [esi + 0x60]
inc ebx
cmp ebx, eax
jl 0x4806b7
mov edx, dword [esi + 0x24]
and edi, 0xff
mov edi, dword [edx + edi*4]
test edi, edi
je 0x480743
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + edx]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [esp + 0x20]
mov dword [edx + ecx*4], eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xc]
mov ecx, dword [0x82b884]
mov ebx, dword [edi]
and eax, 0xfffff0
or eax, 0x60000000
push eax
call fcn.00469030
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x34]
mov edx, dword [eax + ecx]
push ebp
push edx
mov ecx, edi
call dword [ebx + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x480685
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x50]
mov eax, dword [ecx]
and eax, 0xf
add ecx, 4
test eax, eax
jle 0x480792
mov dword [esp + 0x2c], eax
lea ebx, [ebx]
mov eax, dword [ecx]
mov edi, dword [ebx + 0x4c]
mov edx, eax
sar edx, 0x18
sar eax, 0x10
and edx, 0xf
and eax, 0xf
lea edx, [edi + edx*4]
mov dword [ebp + eax*4 + 0x58], edx
mov eax, dword [esp + 0x2c]
add ecx, 4
dec eax
mov dword [ebp + 0x98], 0
mov dword [esp + 0x2c], eax
jne 0x480760
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx + edx]
mov ecx, dword [eax + 8]
push ecx
push str.Set__x_InputMapPtr_to_Input_Start__x__n
push 0
call fcn.00469210
mov edx, dword [esi + 0x34]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + eax]
mov dword [ecx + 0x34], edi
jmp 0x4807ef
mov ecx, dword [esi + 0x24]
mov edi, dword [ecx + ebx*4]
jmp 0x4806de
mov edx, dword [esi + 0x34]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + edx]
mov edx, dword [esi + 0x50]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
push eax
push str.Cannot_Find_OBJECT__x__Index_Number__d_n
push edi
call fcn.00469210
mov dword [ebx + 0x4c], edi
add esp, 0x10
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], edx
jl 0x48040e
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x34
ret