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

Disassembly:
mov eax, dword [0x160c980]
sub esp, 0x104
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x4c18df
call fcn.004c3f40
call fcn.004c3c00
mov eax, dword [esp + 0x118]
push 0x160c984
push eax
call fcn.00473500
mov edi, 0x160c984
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jle 0x4c1924
lea esi, [ecx + 0x160c980]
push 4
push str._sml
push esi
call fcn.00544c70
add esp, 0xc
test eax, eax
jne 0x4c1924
mov byte [esi], al
mov edi, 0x160c984
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x57e2bc]
repne scasb al, byte es:[edi]
mov ecx, dword [str..dcl]
dec edi
push 1
lea eax, [esp + 0x14]
mov dword [edi], ecx
push 1
push eax
push 0x160c984
mov byte [edi + 4], dl
call dword [0x160ccb0]
add esp, 0x10
test eax, eax
jg 0x4c197c
push 0x160c984
push str.R_LevelMarksLoad:__s_not_found_n
push ebx
call dword [0x160cc60]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push 0x14
push edx
mov dword [0x160c980], 1
call dword [0x160ccb4]
mov eax, dword [0xf44a60]
add esp, 0xc
cmp eax, ebx
je 0x4c19bd
xor esi, esi
mov eax, dword [esp + esi*4 + 0x20]
push eax
call fcn.004737d0
add esp, 4
mov dword [esp + esi*4 + 0x20], eax
inc esi
cmp esi, 5
jb 0x4c19a6
cmp dword [esp + 0x20], 0x204c4344
je 0x4c19f1
push 0x160c984
push str.R_LevelMarksLoad:__s_Seems_to_be_an_invalid_DCL_file_n
push ebx
call dword [0x160cc60]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x160ccb8]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x4c1a2c
cmp eax, 2
je 0x4c1a36
push 2
push eax
push 0x160c984
push str.R_LevelMarksLoad:__s_is_wrong_version___i_should_be__i__n
push ebx
call dword [0x160cc60]
mov edx, dword [esp + 0x24]
push edx
call dword [0x160ccb8]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov byte [esp + 0xb0], 0
jmp 0x4c1a56
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xb0]
push eax
push 0x20
push ecx
mov byte [esp + 0xdc], 0
call dword [0x160ccb4]
add esp, 0xc
push 0x160c984
push str.____________Loading_DCL_file__s___________n
push ebx
call dword [0x160cc60]
mov edx, dword [0x160c950]
add esp, 0xc
cmp dword [edx + 0x20], ebx
je 0x4c1dfe
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x4c2131
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push 0x7c
push ecx
call dword [0x160ccb4]
mov eax, dword [0xf44a60]
add esp, 0xc
cmp eax, ebx
je 0x4c1bd1
mov edx, dword [esp + 0x74]
push edx
call fcn.00473850
mov eax, dword [esp + 0x7c]
fstp dword [esp + 0x78]
push eax
call fcn.00473850
mov ecx, dword [esp + 0x84]
fstp dword [esp + 0x80]
push ecx
call fcn.00473850
mov edx, dword [esp + 0x8c]
fstp dword [esp + 0x88]
push edx
call fcn.00473850
mov eax, dword [esp + 0x94]
fstp dword [esp + 0x90]
push eax
call fcn.00473850
mov ecx, dword [esp + 0x9c]
fstp dword [esp + 0x98]
push ecx
call fcn.00473850
mov edx, dword [esp + 0xa4]
fstp dword [esp + 0xa0]
push edx
call fcn.00473850
mov eax, dword [esp + 0xac]
fstp dword [esp + 0xa8]
push eax
call fcn.00473850
mov ecx, dword [esp + 0xb4]
fstp dword [esp + 0xb0]
push ecx
call fcn.00473850
mov edx, dword [esp + 0xbc]
fstp dword [esp + 0xb8]
push edx
call fcn.00473850
mov eax, dword [esp + 0xc4]
fstp dword [esp + 0xc0]
push eax
call fcn.00473850
mov ecx, dword [esp + 0xcc]
fstp dword [esp + 0xc8]
push ecx
call fcn.00473850
mov edx, dword [esp + 0xd4]
fstp dword [esp + 0xd0]
push edx
call fcn.00473850
mov eax, dword [esp + 0xdc]
fstp dword [esp + 0xd8]
push eax
call fcn.00473850
mov ecx, dword [esp + 0xe4]
fstp dword [esp + 0xe0]
push ecx
call fcn.004737d0
add esp, 0x3c
mov dword [esp + 0xac], eax
mov esi, dword [0x160cb10]
cmp esi, ebx
jne 0x4c1c16
push 0x4000
call dword [0x160cc74]
add esp, 4
cmp eax, ebx
je 0x4c2131
mov dword [0x160cb10], eax
mov ecx, eax
mov esi, 0x7f
lea edx, [ecx + 0x80]
dec esi
mov dword [ecx], edx
mov ecx, edx
jne 0x4c1bfd
mov dword [eax + 0x3f80], ebx
mov esi, dword [0x160cb10]
mov edx, dword [esi]
mov eax, dword [0x160ca90]
mov dword [0x160cb10], edx
mov dword [esi], eax
mov dword [esi + 4], 0x160ca90
mov ecx, dword [0x160ca90]
mov eax, 0x3f800000
lea edi, [esi + 0xc]
mov dword [ecx + 4], esi
mov edx, dword [0x160cdbc]
mov dword [0x160ca90], esi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea ebp, [esi + 0x18]
lea eax, [esp + 0x34]
mov dword [esi + 8], edx
push eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [edi], ebx
mov dword [ebp], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 0xbf800000
mov dword [esi + 0x24], 0x41000000
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x44], 1
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
call fcn.004beae0
add esp, 4
cmp eax, ebx
jne 0x4c1cb8
lea ecx, [esp + 0x34]
push ecx
push str.Bad_decal_shader__s_n
push ebx
call dword [0x160cc60]
mov edx, dword [0x160cdbc]
add esp, 0xc
mov dword [esi + 8], edx
jmp 0x4c1cc4
push eax
call fcn.004becc0
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [edi], eax
mov ecx, dword [esp + 0x7c]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x80]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x84]
mov dword [ebp], eax
mov ecx, dword [esp + 0x88]
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x20], edx
mov eax, dword [esp + 0x90]
mov dword [esi + 0x24], eax
mov ecx, dword [esp + 0x98]
mov dword [esi + 0x2c], ecx
mov edx, dword [esp + 0x94]
mov dword [esi + 0x28], edx
mov eax, dword [esp + 0x9c]
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0xa0]
mov dword [esi + 0x34], ecx
mov edx, dword [esp + 0xa4]
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0xa8]
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0xac]
mov dword [esi + 0x40], ecx
mov edx, dword [esp + 0xb0]
push 1
push 1
push ebp
mov dword [esi + 0x44], edx
push edi
mov dword [0x160cb14], esi
call fcn.004c2510
add esp, 0x14
test eax, eax
jne 0x4c1de4
mov esi, dword [0x160cb14]
cmp esi, ebx
je 0x4c1de4
push esi
call fcn.004c21f0
mov eax, dword [esi]
add esp, 4
cmp eax, 0x160ca90
mov dword [0x160cb14], eax
jne 0x4c1da2
mov eax, dword [esi + 4]
cmp eax, 0x160ca90
mov dword [0x160cb14], eax
jne 0x4c1da2
mov dword [0x160cb14], ebx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [0x160cb10]
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov edx, dword [0x160cbcc]
mov dword [0x160cb10], esi
cmp dword [edx + 0x20], ebx
je 0x4c1dde
mov dword [0x160ca88], 1
call fcn.004c3760
jmp 0x4c1de4
mov dword [0x160ca88], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4c1a89
jmp 0x4c2131
mov eax, dword [0x160cdbc]
mov ecx, 0xf
mov dword [esp + 0x18], eax
xor eax, eax
lea edi, [esp + 0xd5]
mov byte [esp + 0xd4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [0x160ccec]
cmp byte [eax], 0
je 0x4c215b
lea esi, [esp + 0xb0]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4c1e5c
test cl, cl
je 0x4c1e58
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4c1e5c
add eax, 2
add esi, 2
test cl, cl
jne 0x4c1e38
xor eax, eax
jmp 0x4c1e61
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c215b
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x4c1e7b
mov eax, dword [esp + 0x10]
push eax
jmp 0x4c2136
mov edx, dword [esp + 0x10]
mov ecx, eax
shl ecx, 5
sub ecx, eax
push ebx
shl ecx, 2
push ecx
push edx
call dword [0x160ccbc]
mov eax, dword [esp + 0x3c]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call dword [0x160cc74]
mov dword [0x160ca84], eax
mov eax, dword [esp + 0x40]
add esp, 0x10
xor ebp, ebp
cmp eax, ebx
jle 0x4c1fcc
xor edi, edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push 0x4c
push edx
call dword [0x160ccb4]
mov eax, dword [0xf44a60]
add esp, 0xc
cmp eax, ebx
je 0x4c1f0c
mov eax, dword [esp + 0x74]
push eax
call fcn.004737d0
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x78], eax
push ecx
call fcn.004737d0
mov edx, dword [esp + 0x84]
mov dword [esp + 0x80], eax
push edx
call fcn.004737d0
add esp, 0xc
mov dword [esp + 0x7c], eax
mov eax, dword [0x160ca84]
lea ecx, [esp + 0xd4]
lea edx, [esp + 0x34]
push ecx
push edx
lea esi, [eax + edi]
call fcn.00474600
add esp, 8
test eax, eax
je 0x4c1f70
lea eax, [esp + 0x34]
push eax
call fcn.004beae0
add esp, 4
cmp eax, ebx
jne 0x4c1f51
mov ecx, dword [0x160cdbc]
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ecx
mov dword [esi], ebx
mov dword [esi + 8], ebx
jmp 0x4c1fbc
push eax
call fcn.004becc0
add esp, 4
mov dword [esp + 0x18], eax
xor eax, eax
mov cl, byte [esp + eax + 0x34]
mov byte [esp + eax + 0xd4], cl
inc eax
test cl, cl
jne 0x4c1f60
mov edx, dword [esp + 0x18]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x78]
mov dword [esi + 4], eax
mov dword [esi], 4
mov ecx, dword [esp + 0x7c]
mov dword [esi + 8], ecx
mov eax, dword [esp + 0x7c]
lea edx, [eax + eax*2]
shl edx, 3
push edx
call dword [0x160cc74]
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x84]
lea edx, [ecx + ecx*2]
shl edx, 3
push edx
push eax
call dword [0x160ccb4]
add esp, 0x10
mov eax, dword [esp + 0x30]
inc ebp
add edi, 0x18
cmp ebp, eax
jl 0x4c1ebb
mov eax, dword [0x160cd60]
mov dword [esp + 0x14], ebx
cmp dword [eax + 0x8c], ebx
jle 0x4c2084
mov dword [esp + 0x18], ebx
mov esi, dword [eax + 0x90]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add esi, edx
push eax
push 4
lea ebp, [esi + 0x24]
push ebp
call dword [0x160ccb4]
mov eax, dword [ebp]
add esp, 0xc
cmp eax, ebx
je 0x4c205d
lea ecx, [eax*4]
push ecx
call dword [0x160cc74]
mov dword [esi + 0x20], eax
mov eax, dword [ebp]
add esp, 4
xor edi, edi
cmp eax, ebx
jle 0x4c205d
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push 4
push eax
call dword [0x160ccb4]
mov eax, dword [esp + 0x28]
mov edx, dword [0x160ca84]
add esp, 0xc
inc edi
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8]
mov ecx, dword [esi + 0x20]
mov dword [ecx + edi*4 - 4], eax
mov eax, dword [ebp]
cmp edi, eax
jl 0x4c2029
mov eax, dword [0x160cd60]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
inc ecx
mov edx, dword [eax + 0x8c]
add esi, 0x30
cmp ecx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
jl 0x4c1fe5
mov edi, dword [eax + 0xa0]
mov ecx, dword [eax + 0x9c]
cmp edi, ecx
mov dword [esp + 0x14], edi
jge 0x4c2131
lea ebx, [edi + edi*2]
shl ebx, 5
mov esi, dword [eax + 0xa4]
mov edx, dword [esp + 0x10]
add esi, ebx
push edx
push 4
lea ebp, [esi + 0x5c]
push ebp
call dword [0x160ccb4]
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x4c2116
shl eax, 2
push eax
call dword [0x160cc74]
mov dword [esi + 0x58], eax
mov eax, dword [ebp]
add esp, 4
xor edi, edi
test eax, eax
jle 0x4c2112
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push 4
push edx
call dword [0x160ccb4]
mov eax, dword [esp + 0x28]
mov ecx, dword [0x160ca84]
add esp, 0xc
inc edi
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8]
mov eax, dword [esi + 0x58]
mov dword [eax + edi*4 - 4], edx
mov eax, dword [ebp]
cmp edi, eax
jl 0x4c20de
mov edi, dword [esp + 0x14]
mov eax, dword [0x160cd60]
inc edi
add ebx, 0x60
mov dword [esp + 0x14], edi
cmp edi, dword [eax + 0x9c]
jl 0x4c20a2
xor ebx, ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x160ccb8]
push 0x160c984
push str._______Finished_loading_DCL_file__s_______n
push ebx
call dword [0x160cc60]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push str.____BSP_file_is_newer_than_DCL_file._n
push ebx
call dword [0x160cc60]
push str.____The_DCL_file_needs_to_be_updated._n
push ebx
call dword [0x160cc60]
push 0x160c984
push str._______Finished_loading_DCL_file__s_______n
push ebx
call dword [0x160cc60]
mov edx, dword [esp + 0x2c]
push edx
call dword [0x160ccb8]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret