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

Disassembly:
mov eax, dword [0x12ff3c0]
sub esp, 0x104
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x4aa6df
call fcn.004acd10
call fcn.004ac9d0
mov eax, dword [esp + 0x118]
push 0x12ff3c4
push eax
call fcn.00461c60
mov edi, 0x12ff3c4
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x55d6b0]
repne scasb al, byte es:[edi]
mov ecx, dword [str..dcl]
dec edi
push 1
lea eax, [esp + 0x1c]
mov dword [edi], ecx
push 1
push eax
push 0x12ff3c4
mov byte [edi + 4], dl
call dword [0x12ff6f0]
add esp, 0x18
test eax, eax
jg 0x4aa749
push 0x12ff3c4
push str.R_LevelMarksLoad:__s_not_found_n
push ebx
call dword [0x12ff6a0]
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 [0x12ff3c0], 1
call dword [0x12ff6f4]
mov eax, dword [0xd830a0]
add esp, 0xc
cmp eax, ebx
je 0x4aa78a
xor esi, esi
mov eax, dword [esp + esi*4 + 0x20]
push eax
call fcn.00461f30
add esp, 4
mov dword [esp + esi*4 + 0x20], eax
inc esi
cmp esi, 5
jb 0x4aa773
cmp dword [esp + 0x20], 0x204c4344
je 0x4aa7be
push 0x12ff3c4
push str.R_LevelMarksLoad:__s_Seems_to_be_an_invalid_DCL_file_n
push ebx
call dword [0x12ff6a0]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x12ff6f8]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x4aa7f9
cmp eax, 2
je 0x4aa803
push 2
push eax
push 0x12ff3c4
push str.R_LevelMarksLoad:__s_is_wrong_version___i_should_be__i__n
push ebx
call dword [0x12ff6a0]
mov edx, dword [esp + 0x24]
push edx
call dword [0x12ff6f8]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov byte [esp + 0xb0], 0
jmp 0x4aa823
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xb0]
push eax
push 0x20
push ecx
mov byte [esp + 0xdc], 0
call dword [0x12ff6f4]
add esp, 0xc
push 0x12ff3c4
push str.____________Loading_DCL_file__s___________n
push ebx
call dword [0x12ff6a0]
mov edx, dword [0x12ff380]
add esp, 0xc
cmp dword [edx + 0x20], ebx
je 0x4aabcb
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x4aaefe
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push 0x7c
push ecx
call dword [0x12ff6f4]
mov eax, dword [0xd830a0]
add esp, 0xc
cmp eax, ebx
je 0x4aa99e
mov edx, dword [esp + 0x74]
push edx
call fcn.00461fb0
mov eax, dword [esp + 0x7c]
fstp dword [esp + 0x78]
push eax
call fcn.00461fb0
mov ecx, dword [esp + 0x84]
fstp dword [esp + 0x80]
push ecx
call fcn.00461fb0
mov edx, dword [esp + 0x8c]
fstp dword [esp + 0x88]
push edx
call fcn.00461fb0
mov eax, dword [esp + 0x94]
fstp dword [esp + 0x90]
push eax
call fcn.00461fb0
mov ecx, dword [esp + 0x9c]
fstp dword [esp + 0x98]
push ecx
call fcn.00461fb0
mov edx, dword [esp + 0xa4]
fstp dword [esp + 0xa0]
push edx
call fcn.00461fb0
mov eax, dword [esp + 0xac]
fstp dword [esp + 0xa8]
push eax
call fcn.00461fb0
mov ecx, dword [esp + 0xb4]
fstp dword [esp + 0xb0]
push ecx
call fcn.00461fb0
mov edx, dword [esp + 0xbc]
fstp dword [esp + 0xb8]
push edx
call fcn.00461fb0
mov eax, dword [esp + 0xc4]
fstp dword [esp + 0xc0]
push eax
call fcn.00461fb0
mov ecx, dword [esp + 0xcc]
fstp dword [esp + 0xc8]
push ecx
call fcn.00461fb0
mov edx, dword [esp + 0xd4]
fstp dword [esp + 0xd0]
push edx
call fcn.00461fb0
mov eax, dword [esp + 0xdc]
fstp dword [esp + 0xd8]
push eax
call fcn.00461fb0
mov ecx, dword [esp + 0xe4]
fstp dword [esp + 0xe0]
push ecx
call fcn.00461f30
add esp, 0x3c
mov dword [esp + 0xac], eax
mov esi, dword [0x12ff550]
cmp esi, ebx
jne 0x4aa9e3
push 0x4000
call dword [0x12ff6b4]
add esp, 4
cmp eax, ebx
je 0x4aaefe
mov dword [0x12ff550], eax
mov ecx, eax
mov esi, 0x7f
lea edx, [ecx + 0x80]
dec esi
mov dword [ecx], edx
mov ecx, edx
jne 0x4aa9ca
mov dword [eax + 0x3f80], ebx
mov esi, dword [0x12ff550]
mov edx, dword [esi]
mov eax, dword [0x12ff4d0]
mov dword [0x12ff550], edx
mov dword [esi], eax
mov dword [esi + 4], 0x12ff4d0
mov ecx, dword [0x12ff4d0]
mov eax, 0x3f800000
lea edi, [esi + 0xc]
mov dword [ecx + 4], esi
mov edx, dword [0x12ff7fc]
mov dword [0x12ff4d0], 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.004a1cd0
add esp, 4
cmp eax, ebx
jne 0x4aaa85
lea ecx, [esp + 0x34]
push ecx
push str.Bad_decal_shader__s_n
push ebx
call dword [0x12ff6a0]
mov edx, dword [0x12ff7fc]
add esp, 0xc
mov dword [esi + 8], edx
jmp 0x4aaa91
push eax
call fcn.004a1eb0
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 [0x12ff554], esi
call fcn.004ab2e0
add esp, 0x14
test eax, eax
jne 0x4aabb1
mov esi, dword [0x12ff554]
cmp esi, ebx
je 0x4aabb1
push esi
call fcn.004aafc0
mov eax, dword [esi]
add esp, 4
cmp eax, 0x12ff4d0
mov dword [0x12ff554], eax
jne 0x4aab6f
mov eax, dword [esi + 4]
cmp eax, 0x12ff4d0
mov dword [0x12ff554], eax
jne 0x4aab6f
mov dword [0x12ff554], 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 [0x12ff550]
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov edx, dword [0x12ff60c]
mov dword [0x12ff550], esi
cmp dword [edx + 0x20], ebx
je 0x4aabab
mov dword [0x12ff4c8], 1
call fcn.004ac530
jmp 0x4aabb1
mov dword [0x12ff4c8], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4aa856
jmp 0x4aaefe
mov eax, dword [0x12ff7fc]
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 [0x12ff72c]
cmp byte [eax], 0
je 0x4aaf28
lea esi, [esp + 0xb0]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4aac29
test cl, cl
je 0x4aac25
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4aac29
add eax, 2
add esi, 2
test cl, cl
jne 0x4aac05
xor eax, eax
jmp 0x4aac2e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4aaf28
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x4aac48
mov eax, dword [esp + 0x10]
push eax
jmp 0x4aaf03
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 [0x12ff6fc]
mov eax, dword [esp + 0x3c]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call dword [0x12ff6b4]
mov dword [0x12ff4c4], eax
mov eax, dword [esp + 0x40]
add esp, 0x10
xor ebp, ebp
cmp eax, ebx
jle 0x4aad99
xor edi, edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push 0x4c
push edx
call dword [0x12ff6f4]
mov eax, dword [0xd830a0]
add esp, 0xc
cmp eax, ebx
je 0x4aacd9
mov eax, dword [esp + 0x74]
push eax
call fcn.00461f30
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x78], eax
push ecx
call fcn.00461f30
mov edx, dword [esp + 0x84]
mov dword [esp + 0x80], eax
push edx
call fcn.00461f30
add esp, 0xc
mov dword [esp + 0x7c], eax
mov eax, dword [0x12ff4c4]
lea ecx, [esp + 0xd4]
lea edx, [esp + 0x34]
push ecx
push edx
lea esi, [eax + edi]
call fcn.00462d60
add esp, 8
test eax, eax
je 0x4aad3d
lea eax, [esp + 0x34]
push eax
call fcn.004a1cd0
add esp, 4
cmp eax, ebx
jne 0x4aad1e
mov ecx, dword [0x12ff7fc]
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ecx
mov dword [esi], ebx
mov dword [esi + 8], ebx
jmp 0x4aad89
push eax
call fcn.004a1eb0
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 0x4aad2d
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 [0x12ff6b4]
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 [0x12ff6f4]
add esp, 0x10
mov eax, dword [esp + 0x30]
inc ebp
add edi, 0x18
cmp ebp, eax
jl 0x4aac88
mov eax, dword [0x12ff7a0]
mov dword [esp + 0x14], ebx
cmp dword [eax + 0x8c], ebx
jle 0x4aae51
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 [0x12ff6f4]
mov eax, dword [ebp]
add esp, 0xc
cmp eax, ebx
je 0x4aae2a
lea ecx, [eax*4]
push ecx
call dword [0x12ff6b4]
mov dword [esi + 0x20], eax
mov eax, dword [ebp]
add esp, 4
xor edi, edi
cmp eax, ebx
jle 0x4aae2a
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push 4
push eax
call dword [0x12ff6f4]
mov eax, dword [esp + 0x28]
mov edx, dword [0x12ff4c4]
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 0x4aadf6
mov eax, dword [0x12ff7a0]
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 0x4aadb2
mov edi, dword [eax + 0xa0]
mov ecx, dword [eax + 0x9c]
cmp edi, ecx
mov dword [esp + 0x14], edi
jge 0x4aaefe
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 [0x12ff6f4]
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x4aaee3
shl eax, 2
push eax
call dword [0x12ff6b4]
mov dword [esi + 0x58], eax
mov eax, dword [ebp]
add esp, 4
xor edi, edi
test eax, eax
jle 0x4aaedf
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push 4
push edx
call dword [0x12ff6f4]
mov eax, dword [esp + 0x28]
mov ecx, dword [0x12ff4c4]
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 0x4aaeab
mov edi, dword [esp + 0x14]
mov eax, dword [0x12ff7a0]
inc edi
add ebx, 0x60
mov dword [esp + 0x14], edi
cmp edi, dword [eax + 0x9c]
jl 0x4aae6f
xor ebx, ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x12ff6f8]
push 0x12ff3c4
push str._______Finished_loading_DCL_file__s_______n
push ebx
call dword [0x12ff6a0]
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 [0x12ff6a0]
push str.____The_DCL_file_needs_to_be_updated._n
push ebx
call dword [0x12ff6a0]
mov edx, dword [esp + 0x20]
push edx
call dword [0x12ff6f8]
push 0x12ff3c4
push str._______Finished_loading_DCL_file__s_______n
push ebx
call dword [0x12ff6a0]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret