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

Disassembly:
mov eax, 0x1e44
call fcn.005182b0
mov eax, dword [esp + 0x1e50]
push esi
mov esi, dword [esp + 0x1e4c]
push eax
lea eax, [esp + 0x2c]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push ecx
push edx
mov edx, dword [esi]
lea ecx, [esp + 0x234]
push eax
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call fcn.00513c80
mov edx, dword [esp + 0x224]
add esp, 0x1c
test edx, edx
jne 0x50bfc4
mov ecx, dword [esi]
push ecx
push str._Model__s_has_no_skelmodel_n
call fcn.0044a560
add esp, 8
xor eax, eax
pop esi
add esp, 0x1e44
ret
push ebx
push ebp
mov ebp, dword [esp + 0x1e58]
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x4c]
not ecx
lea esi, [eax*8]
dec ecx
sub esi, eax
lea eax, [eax + esi*4]
lea eax, [eax + eax*2]
lea edx, [edx + eax*2]
lea esi, [ecx + edx*2 + 0x1db]
push esi
call fcn.00478110
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x30], ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1e58]
lea ecx, [ebx + 0x3c]
mov dword [ebx + 4], eax
call fcn.00506670
xor esi, esi
mov edi, ebp
mov dword [ebx + 8], esi
mov ecx, dword [esp + 0x54]
mov dword [ebx + 0x14], ecx
mov edx, dword [esp + 0x58]
mov dword [ebx + 0x18], edx
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x1c], eax
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0xc], ecx
mov edx, dword [esp + 0x214]
mov dword [ebx + 0x1d4], edx
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x38], eax
mov ecx, dword [esp + 0x214]
xor eax, eax
lea edx, [ebx + ecx*2 + 0x1da]
or ecx, 0xffffffff
mov dword [ebx], edx
repne scasb al, byte es:[edi]
mov eax, dword [ebx]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
mov dword [esp + 0x24], edx
mov cl, byte [ebp]
inc ebp
mov byte [eax], cl
inc eax
test cl, cl
jne 0x50c087
lea ecx, [ebx + 0x3c]
call fcn.00506570
mov eax, dword [esp + 0x214]
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x14], ecx
jle 0x50c127
lea eax, [ebx + 0x1d8]
mov dword [esp + 0x10], eax
movsx eax, word [esp + ecx*2 + 0x218]
mov edx, dword [esp + 0x10]
xor edi, edi
mov word [edx], ax
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
shl eax, 2
mov edx, dword [eax + 0xc5d030]
mov esi, dword [eax + 0xc5d028]
inc edx
mov dword [eax + 0xc5d030], edx
mov eax, dword [esi + 0x48]
test eax, eax
jle 0x50c10a
xor ebp, ebp
mov eax, dword [esi + 0x4c]
mov cx, word [eax + ebp]
push ecx
lea ecx, [ebx + 0x3c]
call fcn.00506680
mov eax, dword [esi + 0x48]
inc edi
add ebp, 0x38
cmp edi, eax
jl 0x50c0eb
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x214]
inc ecx
add edx, 2
cmp ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
jl 0x50c0b5
xor esi, esi
lea ecx, [ebx + 0x3c]
call fcn.005065b0
mov edx, dword [esp + 0x60]
lea edi, [esp + 0x234]
mov dword [ebx + 0x20], edx
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x24], eax
mov ecx, dword [esp + 0x68]
mov dword [ebx + 0x28], ecx
mov edx, dword [esp + 0x6c]
mov dword [ebx + 0x2c], edx
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x30], eax
mov ecx, dword [esp + 0x74]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x34], ecx
mov eax, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], esi
jle 0x50c405
jmp 0x50c17f
xor esi, esi
push 0x2a
push edi
call fcn.005172d0
mov ecx, eax
add esp, 8
sub ecx, edi
cmp eax, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jne 0x50c2bb
push 0x54e4b0
push edi
call fcn.00518070
add esp, 8
test eax, eax
je 0x50c2bb
mov eax, dword [esp + 0x214]
xor edi, edi
test eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
jle 0x50c3c6
movsx eax, word [esp + edi*2 + 0x218]
push eax
call fcn.00512800
mov ebx, eax
add esp, 4
xor ebp, ebp
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x50]
test eax, eax
mov dword [esp + 0x14], ecx
jle 0x50c291
lea edx, [esi*8]
mov ecx, dword [esp + 0x24]
sub edx, esi
lea eax, [esi + edx*4]
lea eax, [eax + eax*2]
lea esi, [ecx + eax*4]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea edi, [edx + 4]
push edi
push eax
call fcn.00518070
add esp, 8
test eax, eax
jne 0x50c270
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1e58]
push ecx
push edi
mov eax, dword [edx]
push esi
push eax
call fcn.00511420
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x50c268
mov ecx, dword [esp + 0x1e5c]
lea edx, [ebx + 4]
push ecx
push edx
push ebp
push str.TIKI_InitTiki:_Surface__i_in__s_referenced_in__s__has_no_name___Please_investigate_and_fix_n
call fcn.005113c0
add esp, 0x10
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
inc ebp
add esi, 0x15c
mov ecx, dword [eax + 0x64]
mov eax, dword [ebx + 0x44]
cmp ebp, eax
mov dword [esp + 0x14], ecx
jl 0x50c20e
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edx, dword [ebx + 0x44]
mov eax, dword [esp + 0x214]
add esi, edx
inc edi
cmp edi, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
jl 0x50c1d1
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
jmp 0x50c3c2
mov eax, dword [esp + 0x214]
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x28], esi
test eax, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], edi
jle 0x50c3c6
movsx edx, word [esp + edi*2 + 0x218]
push edx
call fcn.00512800
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x50]
add esp, 4
mov dword [esp + 0x20], eax
test ecx, ecx
mov dword [esp + 0x18], 0
jle 0x50c3a1
lea eax, [ebp*8]
mov edx, dword [esp + 0x24]
sub eax, ebp
lea eax, [ebp + eax*4]
lea ecx, [eax + eax*2]
lea ebp, [edx + ecx*4]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x50c344
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x50c344
mov edi, dword [esp + 0x10]
push eax
lea eax, [esi + 4]
push eax
push edi
call fcn.00529a30
add esp, 0xc
test eax, eax
je 0x50c35a
jmp 0x50c348
mov edi, dword [esp + 0x10]
push 0x54e4b0
push edi
call fcn.00518070
add esp, 8
test eax, eax
jne 0x50c37a
mov edx, dword [esp + 0x1e58]
lea ecx, [esi + 4]
push edi
push ecx
mov eax, dword [edx]
push ebp
push eax
call fcn.00511420
add esp, 0x10
mov dword [esp + 0x28], 1
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov esi, dword [esi + 0x64]
inc eax
mov edx, dword [ecx + 0x44]
add ebp, 0x15c
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x50c31c
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, ecx
mov edx, dword [eax + 0x44]
mov eax, dword [esp + 0x214]
add ebp, edx
inc edi
cmp edi, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], edi
jl 0x50c2da
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x50c3e2
mov edx, dword [esp + 0x1e58]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push ecx
push str.TIKI_InitTiki:_could_not_find_surface__s_in__s__check_referenced_skb_skd_files_._n
call fcn.005113c0
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
inc eax
add edi, 0x12c
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], edi
jl 0x50c17d
fld dword [ebx + 0x38]
fcomp dword [0x5314c0]
fnstsw ax
test ah, 0x44
jp 0x50c41e
push ebx
call fcn.0050c430
add esp, 4
pop edi
mov eax, ebx
pop ebp
pop ebx
pop esi
add esp, 0x1e44
ret