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

Disassembly:
mov eax, dword [0x13139a0]
sub esp, 0x104
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x4ad44f
call fcn.004afa80
call fcn.004af740
mov eax, dword [esp + 0x118]
push 0x13139a4
push eax
call fcn.00464310
mov edi, 0x13139a4
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x561b38]
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 0x13139a4
mov byte [edi + 4], dl
call dword [0x1313cd0]
add esp, 0x18
test eax, eax
jg 0x4ad4b9
push 0x13139a4
push str.R_LevelMarksLoad:__s_not_found_n
push ebx
call dword [0x1313c80]
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 [0x13139a0], 1
call dword [0x1313cd4]
mov eax, dword [0xd8b500]
add esp, 0xc
cmp eax, ebx
je 0x4ad4fa
xor esi, esi
mov eax, dword [esp + esi*4 + 0x20]
push eax
call fcn.004645e0
add esp, 4
mov dword [esp + esi*4 + 0x20], eax
inc esi
cmp esi, 5
jb 0x4ad4e3
cmp dword [esp + 0x20], 0x204c4344
je 0x4ad52e
push 0x13139a4
push str.R_LevelMarksLoad:__s_Seems_to_be_an_invalid_DCL_file_n
push ebx
call dword [0x1313c80]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x1313cd8]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x4ad569
cmp eax, 2
je 0x4ad573
push 2
push eax
push 0x13139a4
push str.R_LevelMarksLoad:__s_is_wrong_version___i_should_be__i__n
push ebx
call dword [0x1313c80]
mov edx, dword [esp + 0x24]
push edx
call dword [0x1313cd8]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov byte [esp + 0xb0], 0
jmp 0x4ad593
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xb0]
push eax
push 0x20
push ecx
mov byte [esp + 0xdc], 0
call dword [0x1313cd4]
add esp, 0xc
push 0x13139a4
push str.____________Loading_DCL_file__s___________n
push ebx
call dword [0x1313c80]
mov edx, dword [0x1313970]
add esp, 0xc
cmp dword [edx + 0x20], ebx
je 0x4ad93b
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x4adc6e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push 0x7c
push ecx
call dword [0x1313cd4]
mov eax, dword [0xd8b500]
add esp, 0xc
cmp eax, ebx
je 0x4ad70e
mov edx, dword [esp + 0x74]
push edx
call fcn.00464660
mov eax, dword [esp + 0x7c]
fstp dword [esp + 0x78]
push eax
call fcn.00464660
mov ecx, dword [esp + 0x84]
fstp dword [esp + 0x80]
push ecx
call fcn.00464660
mov edx, dword [esp + 0x8c]
fstp dword [esp + 0x88]
push edx
call fcn.00464660
mov eax, dword [esp + 0x94]
fstp dword [esp + 0x90]
push eax
call fcn.00464660
mov ecx, dword [esp + 0x9c]
fstp dword [esp + 0x98]
push ecx
call fcn.00464660
mov edx, dword [esp + 0xa4]
fstp dword [esp + 0xa0]
push edx
call fcn.00464660
mov eax, dword [esp + 0xac]
fstp dword [esp + 0xa8]
push eax
call fcn.00464660
mov ecx, dword [esp + 0xb4]
fstp dword [esp + 0xb0]
push ecx
call fcn.00464660
mov edx, dword [esp + 0xbc]
fstp dword [esp + 0xb8]
push edx
call fcn.00464660
mov eax, dword [esp + 0xc4]
fstp dword [esp + 0xc0]
push eax
call fcn.00464660
mov ecx, dword [esp + 0xcc]
fstp dword [esp + 0xc8]
push ecx
call fcn.00464660
mov edx, dword [esp + 0xd4]
fstp dword [esp + 0xd0]
push edx
call fcn.00464660
mov eax, dword [esp + 0xdc]
fstp dword [esp + 0xd8]
push eax
call fcn.00464660
mov ecx, dword [esp + 0xe4]
fstp dword [esp + 0xe0]
push ecx
call fcn.004645e0
add esp, 0x3c
mov dword [esp + 0xac], eax
mov esi, dword [0x1313b30]
cmp esi, ebx
jne 0x4ad753
push 0x4000
call dword [0x1313c94]
add esp, 4
cmp eax, ebx
je 0x4adc6e
mov dword [0x1313b30], eax
mov ecx, eax
mov esi, 0x7f
lea edx, [ecx + 0x80]
dec esi
mov dword [ecx], edx
mov ecx, edx
jne 0x4ad73a
mov dword [eax + 0x3f80], ebx
mov esi, dword [0x1313b30]
mov edx, dword [esi]
mov eax, dword [0x1313ab0]
mov dword [0x1313b30], edx
mov dword [esi], eax
mov dword [esi + 4], 0x1313ab0
mov ecx, dword [0x1313ab0]
mov eax, 0x3f800000
lea edi, [esi + 0xc]
mov dword [ecx + 4], esi
mov edx, dword [0x1313ddc]
mov dword [0x1313ab0], 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.004ab630
add esp, 4
cmp eax, ebx
jne 0x4ad7f5
lea ecx, [esp + 0x34]
push ecx
push str.Bad_decal_shader__s_n
push ebx
call dword [0x1313c80]
mov edx, dword [0x1313ddc]
add esp, 0xc
mov dword [esi + 8], edx
jmp 0x4ad801
push eax
call fcn.004ab810
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 [0x1313b34], esi
call fcn.004ae050
add esp, 0x14
test eax, eax
jne 0x4ad921
mov esi, dword [0x1313b34]
cmp esi, ebx
je 0x4ad921
push esi
call fcn.004add30
mov eax, dword [esi]
add esp, 4
cmp eax, 0x1313ab0
mov dword [0x1313b34], eax
jne 0x4ad8df
mov eax, dword [esi + 4]
cmp eax, 0x1313ab0
mov dword [0x1313b34], eax
jne 0x4ad8df
mov dword [0x1313b34], 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 [0x1313b30]
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov edx, dword [0x1313bec]
mov dword [0x1313b30], esi
cmp dword [edx + 0x20], ebx
je 0x4ad91b
mov dword [0x1313aa8], 1
call fcn.004af2a0
jmp 0x4ad921
mov dword [0x1313aa8], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4ad5c6
jmp 0x4adc6e
mov eax, dword [0x1313ddc]
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 [0x1313d0c]
cmp byte [eax], 0
je 0x4adc98
lea esi, [esp + 0xb0]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4ad999
test cl, cl
je 0x4ad995
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4ad999
add eax, 2
add esi, 2
test cl, cl
jne 0x4ad975
xor eax, eax
jmp 0x4ad99e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4adc98
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x4ad9b8
mov eax, dword [esp + 0x10]
push eax
jmp 0x4adc73
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 [0x1313cdc]
mov eax, dword [esp + 0x3c]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call dword [0x1313c94]
mov dword [0x1313aa4], eax
mov eax, dword [esp + 0x40]
add esp, 0x10
xor ebp, ebp
cmp eax, ebx
jle 0x4adb09
xor edi, edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push 0x4c
push edx
call dword [0x1313cd4]
mov eax, dword [0xd8b500]
add esp, 0xc
cmp eax, ebx
je 0x4ada49
mov eax, dword [esp + 0x74]
push eax
call fcn.004645e0
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x78], eax
push ecx
call fcn.004645e0
mov edx, dword [esp + 0x84]
mov dword [esp + 0x80], eax
push edx
call fcn.004645e0
add esp, 0xc
mov dword [esp + 0x7c], eax
mov eax, dword [0x1313aa4]
lea ecx, [esp + 0xd4]
lea edx, [esp + 0x34]
push ecx
push edx
lea esi, [eax + edi]
call fcn.00465410
add esp, 8
test eax, eax
je 0x4adaad
lea eax, [esp + 0x34]
push eax
call fcn.004ab630
add esp, 4
cmp eax, ebx
jne 0x4ada8e
mov ecx, dword [0x1313ddc]
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ecx
mov dword [esi], ebx
mov dword [esi + 8], ebx
jmp 0x4adaf9
push eax
call fcn.004ab810
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 0x4ada9d
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 [0x1313c94]
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 [0x1313cd4]
add esp, 0x10
mov eax, dword [esp + 0x30]
inc ebp
add edi, 0x18
cmp ebp, eax
jl 0x4ad9f8
mov eax, dword [0x1313d80]
mov dword [esp + 0x14], ebx
cmp dword [eax + 0x8c], ebx
jle 0x4adbc1
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 [0x1313cd4]
mov eax, dword [ebp]
add esp, 0xc
cmp eax, ebx
je 0x4adb9a
lea ecx, [eax*4]
push ecx
call dword [0x1313c94]
mov dword [esi + 0x20], eax
mov eax, dword [ebp]
add esp, 4
xor edi, edi
cmp eax, ebx
jle 0x4adb9a
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push 4
push eax
call dword [0x1313cd4]
mov eax, dword [esp + 0x28]
mov edx, dword [0x1313aa4]
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 0x4adb66
mov eax, dword [0x1313d80]
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 0x4adb22
mov edi, dword [eax + 0xa0]
mov ecx, dword [eax + 0x9c]
cmp edi, ecx
mov dword [esp + 0x14], edi
jge 0x4adc6e
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 [0x1313cd4]
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x4adc53
shl eax, 2
push eax
call dword [0x1313c94]
mov dword [esi + 0x58], eax
mov eax, dword [ebp]
add esp, 4
xor edi, edi
test eax, eax
jle 0x4adc4f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push 4
push edx
call dword [0x1313cd4]
mov eax, dword [esp + 0x28]
mov ecx, dword [0x1313aa4]
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 0x4adc1b
mov edi, dword [esp + 0x14]
mov eax, dword [0x1313d80]
inc edi
add ebx, 0x60
mov dword [esp + 0x14], edi
cmp edi, dword [eax + 0x9c]
jl 0x4adbdf
xor ebx, ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x1313cd8]
push 0x13139a4
push str._______Finished_loading_DCL_file__s_______n
push ebx
call dword [0x1313c80]
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 [0x1313c80]
push str.____The_DCL_file_needs_to_be_updated._n
push ebx
call dword [0x1313c80]
mov edx, dword [esp + 0x20]
push edx
call dword [0x1313cd8]
push 0x13139a4
push str._______Finished_loading_DCL_file__s_______n
push ebx
call dword [0x1313c80]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret