Function at 0x415e30
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 0x415e4b
cmp byte [ebp], 0
jne 0x415e5a
push str.CM_LoadMap:_NULL_name
push 1
call fcn.0041e420
add esp, 8
push 0x200
push 0x4e47ac
push str.cm_noAreas
call fcn.00421a90
push 0x200
push 0x4e47ac
push str.cm_noCurves
mov dword [0xedd414], eax
call fcn.00421a90
push 0x201
push 0x4e6aec
push str.cm_playerCurveClip
mov dword [0xedd330], eax
call fcn.00421a90
mov ebx, dword [esp + 0xd0]
mov dword [0xedd418], eax
push ebx
push ebp
push str.CM_LoadMap___s___i___n
call fcn.0041e3c0
add esp, 0x30
mov esi, ebp
mov eax, 0xedd340
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x415ee6
test cl, cl
je 0x415ee2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x415ee6
add eax, 2
add esi, 2
test cl, cl
jne 0x415ec2
xor eax, eax
jmp 0x415eeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x415f0d
test ebx, ebx
je 0x415f0d
mov eax, dword [esp + 0xb0]
mov ecx, dword [0x8e6504]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x94
ret
mov ecx, 0x2f
xor eax, eax
mov edi, 0xedd340
rep stosd dword es:[edi], eax
call fcn.004164f0
cmp byte [ebp], 0
jne 0x415f63
mov eax, 1
push 0
push 0x30
mov dword [0xedd3a0], eax
mov dword [0xedd3c8], eax
mov dword [0xedd3e0], eax
call fcn.0041fad0
mov edx, dword [esp + 0xb8]
add esp, 8
mov dword [0xedd3bc], 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.00424450
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x415f8b
push ebp
push str.Couldnt_load__s
push 1
call fcn.0041e420
add esp, 0xc
mov ecx, dword [esp + 0x10]
push esi
push ecx
call fcn.00427e70
push eax
call fcn.0042c880
mov edx, dword [esp + 0xbc]
mov esi, dword [esp + 0x1c]
mov dword [0x8e6504], 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.0042c880
mov dword [esi], eax
add esp, 4
add esi, 4
dec edi
jne 0x415fc5
mov eax, dword [esp + 0x18]
cmp eax, 0x2f
je 0x415ff4
push 0x2f
push eax
push ebp
push str.CM_LoadMap:__s_has_wrong_version_number___i_should_be__i_
push 1
call fcn.0041e420
add esp, 0x14
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
mov dword [0xedd404], ecx
call fcn.004151a0
lea eax, [esp + 0x40]
push eax
call fcn.00415650
lea ecx, [esp + 0x54]
push ecx
call fcn.004158d0
lea edx, [esp + 0x50]
push edx
call fcn.00415940
lea eax, [esp + 0x3c]
push eax
call fcn.00415780
lea ecx, [esp + 0x78]
push ecx
call fcn.004159b0
lea edx, [esp + 0x74]
push edx
call fcn.00415570
lea eax, [esp + 0x70]
push eax
call fcn.00415260
lea ecx, [esp + 0x54]
push ecx
call fcn.00415440
lea edx, [esp + 0x40]
push edx
call fcn.00415a70
lea eax, [esp + 0xc4]
push eax
call fcn.00415ac0
lea ecx, [esp + 0x98]
lea edx, [esp + 0xb0]
push ecx
push edx
call fcn.00415b70
mov eax, dword [esp + 0x44]
push eax
call fcn.00424710
add esp, 0x38
call fcn.00416230
call fcn.0041aee0
test ebx, ebx
jne 0x4160af
push 0x40
push ebp
push 0xedd340
call fcn.0042d0d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret