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

Disassembly:
sub esp, 0x94
push ebx
push ebp
mov ebp, dword [esp + 0xa0]
push esi
test ebp, ebp
push edi
je 0x414e0b
cmp byte [ebp], 0
jne 0x414e1a
push str.CM_LoadMap:_NULL_name
push 1
call fcn.0041d360
add esp, 8
push 0x200
push 0x4da770
push str.cm_noAreas
call fcn.00420860
push 0x200
push 0x4da770
push str.cm_noCurves
mov dword [0xec8074], eax
call fcn.00420860
push 0x201
push 0x4dca80
push str.cm_playerCurveClip
mov dword [0xec7f90], eax
call fcn.00420860
mov ebx, dword [esp + 0xd0]
mov dword [0xec8078], eax
push ebx
push ebp
push str.CM_LoadMap___s___i___n
call fcn.0041d310
add esp, 0x30
mov esi, ebp
mov eax, 0xec7fa0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x414ea6
test cl, cl
je 0x414ea2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x414ea6
add eax, 2
add esi, 2
test cl, cl
jne 0x414e82
xor eax, eax
jmp 0x414eab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x414ecd
test ebx, ebx
je 0x414ecd
mov eax, dword [esp + 0xb0]
mov ecx, dword [0x8d188c]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x94
ret
mov ecx, 0x2f
xor eax, eax
mov edi, 0xec7fa0
rep stosd dword es:[edi], eax
call fcn.004154b0
cmp byte [ebp], 0
jne 0x414f23
mov eax, 1
push 0
push 0x30
mov dword [0xec8000], eax
mov dword [0xec8028], eax
mov dword [0xec8040], eax
call fcn.0041ea00
mov edx, dword [esp + 0xb8]
add esp, 8
mov dword [0xec801c], eax
pop edi
pop esi
pop ebp
mov dword [edx], 0
pop ebx
add esp, 0x94
ret
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.00422e60
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x414f4b
push ebp
push str.Couldnt_load__s
push 1
call fcn.0041d360
add esp, 0xc
mov ecx, dword [esp + 0x10]
push esi
push ecx
call fcn.00426760
push eax
call fcn.0042b030
mov edx, dword [esp + 0xbc]
mov esi, dword [esp + 0x1c]
mov dword [0x8d188c], eax
mov ecx, 0x24
lea edi, [esp + 0x20]
mov dword [edx], eax
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
lea esi, [esp + 0x14]
mov edi, 0x24
mov eax, dword [esi]
push eax
call fcn.0042b030
mov dword [esi], eax
add esp, 4
add esi, 4
dec edi
jne 0x414f85
mov eax, dword [esp + 0x18]
cmp eax, 0x2f
je 0x414fb4
push 0x2f
push eax
push ebp
push str.CM_LoadMap:__s_has_wrong_version_number___i_should_be__i_
push 1
call fcn.0041d360
add esp, 0x14
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
mov dword [0xec8064], ecx
call fcn.00414160
lea eax, [esp + 0x40]
push eax
call fcn.00414610
lea ecx, [esp + 0x54]
push ecx
call fcn.00414890
lea edx, [esp + 0x50]
push edx
call fcn.00414900
lea eax, [esp + 0x3c]
push eax
call fcn.00414740
lea ecx, [esp + 0x78]
push ecx
call fcn.00414970
lea edx, [esp + 0x74]
push edx
call fcn.00414530
lea eax, [esp + 0x70]
push eax
call fcn.00414220
lea ecx, [esp + 0x54]
push ecx
call fcn.00414400
lea edx, [esp + 0x40]
push edx
call fcn.00414a30
lea eax, [esp + 0xc4]
push eax
call fcn.00414a80
lea ecx, [esp + 0x98]
lea edx, [esp + 0xb0]
push ecx
push edx
call fcn.00414b30
mov eax, dword [esp + 0x44]
push eax
call fcn.00423120
add esp, 0x38
call fcn.004151f0
call fcn.00419eb0
test ebx, ebx
jne 0x41506f
push 0x40
push ebp
push 0xec7fa0
call fcn.0042b880
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret