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

Disassembly:
mov eax, dword [0x1324d20]
sub esp, 0x104
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x4ae54f
call fcn.004b0b80
call fcn.004b0840
mov eax, dword [esp + 0x118]
push 0x1324d24
push eax
call fcn.00464220
mov edi, 0x1324d24
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x563f64]
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 0x1324d24
mov byte [edi + 4], dl
call dword [0x1325050]
add esp, 0x18
test eax, eax
jg 0x4ae5b9
push 0x1324d24
push str.R_LevelMarksLoad:__s_not_found_n
push ebx
call dword [0x1325000]
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 [0x1324d20], 1
call dword [0x1325054]
mov eax, dword [0xd9c880]
add esp, 0xc
cmp eax, ebx
je 0x4ae5fa
xor esi, esi
mov eax, dword [esp + esi*4 + 0x20]
push eax
call fcn.004644f0
add esp, 4
mov dword [esp + esi*4 + 0x20], eax
inc esi
cmp esi, 5
jb 0x4ae5e3
cmp dword [esp + 0x20], 0x204c4344
je 0x4ae62e
push 0x1324d24
push str.R_LevelMarksLoad:__s_Seems_to_be_an_invalid_DCL_file_n
push ebx
call dword [0x1325000]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x1325058]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x4ae669
cmp eax, 2
je 0x4ae673
push 2
push eax
push 0x1324d24
push str.R_LevelMarksLoad:__s_is_wrong_version___i_should_be__i__n
push ebx
call dword [0x1325000]
mov edx, dword [esp + 0x24]
push edx
call dword [0x1325058]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov byte [esp + 0xb0], 0
jmp 0x4ae693
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xb0]
push eax
push 0x20
push ecx
mov byte [esp + 0xdc], 0
call dword [0x1325054]
add esp, 0xc
push 0x1324d24
push str.____________Loading_DCL_file__s___________n
push ebx
call dword [0x1325000]
mov edx, dword [0x1324cf0]
add esp, 0xc
cmp dword [edx + 0x20], ebx
je 0x4aea3b
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x4aed6e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push 0x7c
push ecx
call dword [0x1325054]
mov eax, dword [0xd9c880]
add esp, 0xc
cmp eax, ebx
je 0x4ae80e
mov edx, dword [esp + 0x74]
push edx
call fcn.00464570
mov eax, dword [esp + 0x7c]
fstp dword [esp + 0x78]
push eax
call fcn.00464570
mov ecx, dword [esp + 0x84]
fstp dword [esp + 0x80]
push ecx
call fcn.00464570
mov edx, dword [esp + 0x8c]
fstp dword [esp + 0x88]
push edx
call fcn.00464570
mov eax, dword [esp + 0x94]
fstp dword [esp + 0x90]
push eax
call fcn.00464570
mov ecx, dword [esp + 0x9c]
fstp dword [esp + 0x98]
push ecx
call fcn.00464570
mov edx, dword [esp + 0xa4]
fstp dword [esp + 0xa0]
push edx
call fcn.00464570
mov eax, dword [esp + 0xac]
fstp dword [esp + 0xa8]
push eax
call fcn.00464570
mov ecx, dword [esp + 0xb4]
fstp dword [esp + 0xb0]
push ecx
call fcn.00464570
mov edx, dword [esp + 0xbc]
fstp dword [esp + 0xb8]
push edx
call fcn.00464570
mov eax, dword [esp + 0xc4]
fstp dword [esp + 0xc0]
push eax
call fcn.00464570
mov ecx, dword [esp + 0xcc]
fstp dword [esp + 0xc8]
push ecx
call fcn.00464570
mov edx, dword [esp + 0xd4]
fstp dword [esp + 0xd0]
push edx
call fcn.00464570
mov eax, dword [esp + 0xdc]
fstp dword [esp + 0xd8]
push eax
call fcn.00464570
mov ecx, dword [esp + 0xe4]
fstp dword [esp + 0xe0]
push ecx
call fcn.004644f0
add esp, 0x3c
mov dword [esp + 0xac], eax
mov esi, dword [0x1324eb0]
cmp esi, ebx
jne 0x4ae853
push 0x4000
call dword [0x1325014]
add esp, 4
cmp eax, ebx
je 0x4aed6e
mov dword [0x1324eb0], eax
mov ecx, eax
mov esi, 0x7f
lea edx, [ecx + 0x80]
dec esi
mov dword [ecx], edx
mov ecx, edx
jne 0x4ae83a
mov dword [eax + 0x3f80], ebx
mov esi, dword [0x1324eb0]
mov edx, dword [esi]
mov eax, dword [0x1324e30]
mov dword [0x1324eb0], edx
mov dword [esi], eax
mov dword [esi + 4], 0x1324e30
mov ecx, dword [0x1324e30]
mov eax, 0x3f800000
lea edi, [esi + 0xc]
mov dword [ecx + 4], esi
mov edx, dword [0x132515c]
mov dword [0x1324e30], 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.004ab710
add esp, 4
cmp eax, ebx
jne 0x4ae8f5
lea ecx, [esp + 0x34]
push ecx
push str.Bad_decal_shader__s_n
push ebx
call dword [0x1325000]
mov edx, dword [0x132515c]
add esp, 0xc
mov dword [esi + 8], edx
jmp 0x4ae901
push eax
call fcn.004ab8f0
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 [0x1324eb4], esi
call fcn.004af150
add esp, 0x14
test eax, eax
jne 0x4aea21
mov esi, dword [0x1324eb4]
cmp esi, ebx
je 0x4aea21
push esi
call fcn.004aee30
mov eax, dword [esi]
add esp, 4
cmp eax, 0x1324e30
mov dword [0x1324eb4], eax
jne 0x4ae9df
mov eax, dword [esi + 4]
cmp eax, 0x1324e30
mov dword [0x1324eb4], eax
jne 0x4ae9df
mov dword [0x1324eb4], 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 [0x1324eb0]
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov edx, dword [0x1324f6c]
mov dword [0x1324eb0], esi
cmp dword [edx + 0x20], ebx
je 0x4aea1b
mov dword [0x1324e28], 1
call fcn.004b03a0
jmp 0x4aea21
mov dword [0x1324e28], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4ae6c6
jmp 0x4aed6e
mov eax, dword [0x132515c]
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 [0x132508c]
cmp byte [eax], 0
je 0x4aed98
lea esi, [esp + 0xb0]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4aea99
test cl, cl
je 0x4aea95
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4aea99
add eax, 2
add esi, 2
test cl, cl
jne 0x4aea75
xor eax, eax
jmp 0x4aea9e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4aed98
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x4aeab8
mov eax, dword [esp + 0x10]
push eax
jmp 0x4aed73
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 [0x132505c]
mov eax, dword [esp + 0x3c]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call dword [0x1325014]
mov dword [0x1324e24], eax
mov eax, dword [esp + 0x40]
add esp, 0x10
xor ebp, ebp
cmp eax, ebx
jle 0x4aec09
xor edi, edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push 0x4c
push edx
call dword [0x1325054]
mov eax, dword [0xd9c880]
add esp, 0xc
cmp eax, ebx
je 0x4aeb49
mov eax, dword [esp + 0x74]
push eax
call fcn.004644f0
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x78], eax
push ecx
call fcn.004644f0
mov edx, dword [esp + 0x84]
mov dword [esp + 0x80], eax
push edx
call fcn.004644f0
add esp, 0xc
mov dword [esp + 0x7c], eax
mov eax, dword [0x1324e24]
lea ecx, [esp + 0xd4]
lea edx, [esp + 0x34]
push ecx
push edx
lea esi, [eax + edi]
call fcn.00465320
add esp, 8
test eax, eax
je 0x4aebad
lea eax, [esp + 0x34]
push eax
call fcn.004ab710
add esp, 4
cmp eax, ebx
jne 0x4aeb8e
mov ecx, dword [0x132515c]
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ecx
mov dword [esi], ebx
mov dword [esi + 8], ebx
jmp 0x4aebf9
push eax
call fcn.004ab8f0
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 0x4aeb9d
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 [0x1325014]
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 [0x1325054]
add esp, 0x10
mov eax, dword [esp + 0x30]
inc ebp
add edi, 0x18
cmp ebp, eax
jl 0x4aeaf8
mov eax, dword [0x1325100]
mov dword [esp + 0x14], ebx
cmp dword [eax + 0x8c], ebx
jle 0x4aecc1
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 [0x1325054]
mov eax, dword [ebp]
add esp, 0xc
cmp eax, ebx
je 0x4aec9a
lea ecx, [eax*4]
push ecx
call dword [0x1325014]
mov dword [esi + 0x20], eax
mov eax, dword [ebp]
add esp, 4
xor edi, edi
cmp eax, ebx
jle 0x4aec9a
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push 4
push eax
call dword [0x1325054]
mov eax, dword [esp + 0x28]
mov edx, dword [0x1324e24]
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 0x4aec66
mov eax, dword [0x1325100]
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 0x4aec22
mov edi, dword [eax + 0xa0]
mov ecx, dword [eax + 0x9c]
cmp edi, ecx
mov dword [esp + 0x14], edi
jge 0x4aed6e
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 [0x1325054]
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x4aed53
shl eax, 2
push eax
call dword [0x1325014]
mov dword [esi + 0x58], eax
mov eax, dword [ebp]
add esp, 4
xor edi, edi
test eax, eax
jle 0x4aed4f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push 4
push edx
call dword [0x1325054]
mov eax, dword [esp + 0x28]
mov ecx, dword [0x1324e24]
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 0x4aed1b
mov edi, dword [esp + 0x14]
mov eax, dword [0x1325100]
inc edi
add ebx, 0x60
mov dword [esp + 0x14], edi
cmp edi, dword [eax + 0x9c]
jl 0x4aecdf
xor ebx, ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x1325058]
push 0x1324d24
push str._______Finished_loading_DCL_file__s_______n
push ebx
call dword [0x1325000]
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 [0x1325000]
push str.____The_DCL_file_needs_to_be_updated._n
push ebx
call dword [0x1325000]
mov edx, dword [esp + 0x20]
push edx
call dword [0x1325058]
push 0x1324d24
push str._______Finished_loading_DCL_file__s_______n
push ebx
call dword [0x1325000]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret