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

Disassembly:
sub esp, 0x104
push ebp
push esi
push edi
mov edi, dword [esp + 0x114]
test edi, edi
je 0x4401d9
cmp byte [edi], 0
jne 0x4401e8
push str.CM_LoadMap:_NULL_name
push 1
call fcn.0044cf70
add esp, 8
push 0x200
push 0x5455c4
push str.cm_noAreas
call fcn.0044f480
push 0x200
push 0x5455c4
push str.cm_noCurves
mov dword [0xeeb2b4], eax
call fcn.0044f480
push 0x201
push 0x545784
push str.cm_playerCurveClip
mov dword [0xeeb198], eax
call fcn.0044f480
push 0x200
push 0x5455c4
push str.cm_FCMcacheall
mov dword [0xeeb2b8], eax
call fcn.0044f480
push 0x200
push 0x5455c4
push str.cm_FCMdebug
mov dword [0xeeb298], eax
call fcn.0044f480
push 0x200
push 0x545784
push str.cm_ter_usesphere
mov dword [0xeeb2a4], eax
call fcn.0044f480
mov ebp, dword [esp + 0x160]
add esp, 0x48
mov dword [0xeeb19c], eax
push ebp
push edi
push str.CM_LoadMap___s___i___n
call fcn.0044ce60
add esp, 0xc
mov esi, edi
mov eax, 0xeeb1c0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4402c2
test cl, cl
je 0x4402be
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4402c2
add eax, 2
add esi, 2
test cl, cl
jne 0x44029e
xor eax, eax
jmp 0x4402c7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4402e8
test ebp, ebp
je 0x4402e8
mov eax, dword [esp + 0x11c]
mov ecx, dword [0x57811c]
pop edi
pop esi
mov dword [eax], ecx
pop ebp
add esp, 0x104
ret
push 0x36
push 0
push 0xeeb1c0
call fcn.0044ee30
add esp, 0xc
call fcn.00440de0
cmp byte [edi], 0
jne 0x440347
push 0x38
mov dword [0xeeb22c], 1
mov dword [0xeeb25c], 1
mov dword [0xeeb274], 1
call fcn.0045d7a0
mov edx, dword [esp + 0x120]
add esp, 4
mov dword [0xeeb250], eax
pop edi
pop esi
mov dword [edx], 0
pop ebp
add esp, 0x104
ret
call fcn.0042f340
push 1
lea eax, [esp + 0x18]
push 1
push eax
push edi
call fcn.00451280
add esp, 0x10
test eax, eax
jg 0x440372
push edi
push str.Couldnt_load__s
push 1
call fcn.0044cf70
add esp, 0xc
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push 0xec
push edx
call fcn.004517e0
mov eax, dword [0xd9c880]
add esp, 0xc
test eax, eax
je 0x4403ab
xor esi, esi
mov eax, dword [esp + esi*4 + 0x24]
push eax
call fcn.004644f0
add esp, 4
mov dword [esp + esi*4 + 0x24], eax
inc esi
cmp esi, 0x3b
jb 0x440394
mov ecx, dword [esp + 0x11c]
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov dword [0x57811c], eax
mov eax, dword [esp + 0x28]
cmp eax, 0x13
jl 0x4403c8
jle 0x4403dd
push 0x13
push 0x13
push eax
push edi
push str.CM_LoadMap:__s_has_wrong_version_number___i_should_be_between__i_and__i_
push 1
call fcn.0044cf70
add esp, 0x18
push 0x54ce30
call fcn.00412670
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x38]
push edx
push eax
push ecx
call fcn.00440110
push 0x54ce2c
call fcn.00412670
lea edx, [esp + 0x30]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.0043f0d0
push 0x54ce28
call fcn.00412670
lea ecx, [esp + 0x30]
push ecx
call fcn.00440190
push 0x54ce24
call fcn.00412670
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x38]
push 0
lea eax, [esp + 0x68]
push edx
push eax
push ecx
call fcn.00440110
push 0x54ce20
call fcn.00412670
add esp, 0x40
lea edx, [esp + 0xc]
push edx
call fcn.0043f840
push 0x54ce1c
call fcn.00412670
lea eax, [esp + 0x14]
push eax
call fcn.00440190
push 0x54ce18
call fcn.00412670
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x5c]
push ecx
push edx
push eax
call fcn.00440110
push 0x54ce14
call fcn.00412670
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x40]
push 0
lea edx, [esp + 0x78]
push ecx
push edx
push eax
call fcn.00440110
push 0x54ce10
call fcn.00412670
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call fcn.0043fd30
add esp, 0x44
push 0x54ce0c
call fcn.00412670
lea ecx, [esp + 0x20]
push ecx
call fcn.00440190
push 0x54ce08
call fcn.00412670
lea edx, [esp + 0x18]
push edx
call fcn.00440190
push 0x54ce04
call fcn.00412670
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x20]
push 4
lea ecx, [esp + 0x78]
push eax
push ecx
push edx
call fcn.00440110
push 0x54ce00
mov dword [0x578120], eax
call fcn.00412670
lea eax, [esp + 0x34]
push eax
call fcn.0043f980
push 0x54cdfc
call fcn.00412670
lea ecx, [esp + 0x3c]
push ecx
call fcn.00440190
push 0x54cdf8
call fcn.00412670
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x44]
push 0
lea eax, [esp + 0xa4]
push edx
push eax
push ecx
call fcn.00440110
add esp, 0x48
push 0x54cdf4
call fcn.00412670
lea edx, [esp + 0x10]
push edx
call fcn.0043fa10
push 0x54cdf0
call fcn.00412670
lea eax, [esp + 0x18]
push eax
call fcn.00440190
push 0x54cdec
call fcn.00412670
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x88]
push ecx
push edx
push eax
call fcn.00440110
push 0x54cde8
call fcn.00412670
mov eax, dword [esp + 0x50]
add esp, 0x28
cmp eax, 0x13
jge 0x4405de
lea ecx, [esp + 0xc]
push ecx
call fcn.0043f6f0
jmp 0x4405e8
lea edx, [esp + 0xc]
push edx
call fcn.0043f5c0
add esp, 4
push 0x54cde4
call fcn.00412670
lea eax, [esp + 0x10]
push eax
call fcn.00440190
push 0x54cde0
call fcn.00412670
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x88]
push ecx
push edx
push eax
call fcn.00440110
push 0x54cddc
call fcn.00412670
lea ecx, [esp + 0x2c]
push ecx
call fcn.0043f3b0
push 0x54cdd8
call fcn.00412670
lea edx, [esp + 0x34]
push edx
call fcn.00440190
push 0x54cdd4
call fcn.00412670
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x3c]
push 0x20
lea ecx, [esp + 0xb4]
push eax
push ecx
push edx
call fcn.00440110
add esp, 0x40
mov dword [0x578124], eax
push 0x54cdd0
call fcn.00412670
lea eax, [esp + 0x10]
push eax
call fcn.0043faa0
push 0x54cdcc
call fcn.00412670
lea ecx, [esp + 0x18]
push ecx
call fcn.00440190
push 0x54cdc8
call fcn.00412670
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0xa0]
push edx
push eax
push ecx
call fcn.00440110
push 0x54cdc4
call fcn.00412670
lea edx, [esp + 0x34]
push edx
call fcn.0043fb80
push 0x54cdc0
call fcn.00412670
lea eax, [esp + 0x3c]
push eax
call fcn.00440190
push 0x54cdbc
call fcn.00412670
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x44]
push 0
lea edx, [esp + 0xcc]
push ecx
push edx
push eax
call fcn.00440110
add esp, 0x48
push 0x54cdb8
call fcn.00412670
lea ecx, [esp + 0x10]
push ecx
call fcn.0043f4e0
push 0x54cdb4
call fcn.00412670
lea edx, [esp + 0x18]
push edx
call fcn.00440190
push 0x54cdb0
call fcn.00412670
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0xb0]
push eax
push ecx
push edx
call fcn.00440110
push 0x54cdac
call fcn.00412670
lea eax, [esp + 0x34]
push eax
call fcn.0043f1d0
push 0x54cda8
call fcn.00412670
lea ecx, [esp + 0x3c]
push ecx
call fcn.00440190
push 0x54cda4
call fcn.00412670
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x44]
push 0
lea eax, [esp + 0xdc]
push edx
push eax
push ecx
call fcn.00440110
add esp, 0x48
push 0x54cda0
call fcn.00412670
lea edx, [esp + 0x10]
push edx
call fcn.0043fc70
push 0x54cd9c
call fcn.00412670
lea eax, [esp + 0x18]
push eax
call fcn.00440190
push 0x54cd98
call fcn.00412670
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0xc0]
push ecx
push edx
push eax
call fcn.00440110
push 0x54cd94
call fcn.00412670
lea ecx, [esp + 0x34]
push ecx
call fcn.0043fca0
push 0x54cd90
call fcn.00412670
lea edx, [esp + 0x3c]
push edx
call fcn.00440190
push 0x54cd8c
call fcn.00412670
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x44]
push 0
lea ecx, [esp + 0x11c]
push eax
push ecx
push edx
call fcn.00440110
add esp, 0x48
push 0x54cd88
call fcn.00412670
lea eax, [esp + 0x10]
push eax
call fcn.0043ff70
push 0x54cd84
call fcn.00412670
lea ecx, [esp + 0x18]
push ecx
call fcn.00440190
push 0x54cd80
call fcn.00412670
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x100]
push edx
push eax
push ecx
call fcn.00440110
push 0x54cd7c
call fcn.00412670
lea edx, [esp + 0x34]
push edx
call fcn.00440080
push 0x54cd78
call fcn.00412670
lea eax, [esp + 0x3c]
push eax
call fcn.00440190
push 0x54cd74
call fcn.00412670
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00450f10
push 0x54cd70
call fcn.00412670
add esp, 0x40
call fcn.00440ac0
push 0x54cd6c
call fcn.00412670
call fcn.004480f0
push 0x54cd68
call fcn.00412670
add esp, 8
test ebp, ebp
jne 0x440909
push 0x40
push edi
push 0xeeb1c0
call fcn.00465230
add esp, 0xc
push 0x54cd64
call fcn.00412670
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x104
ret