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

Disassembly:
sub esp, 0x108
mov dword [0x5816e0], 0
push ebx
push esi
push edi
mov esi, ecx
push ebp
mov ecx, 0x6a0b68
mov edi, 0x5816e8
call fcn.004e07f0
mov ecx, 0x582a70
call fcn.004e07f0
xor eax, eax
mov ecx, 0xd
mov dword [esi + 0xfc], 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xb8]
mov byte [esi + 0x1d], 3
mov eax, dword [esp + 0x120]
mov word [esi + 0x7c], ax
mov ecx, dword [0x5681d8]
call fcn.004eb220
test eax, eax
je 0x4cce47
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 0x14]
call fcn.00521db0
jmp 0x4cce59
mov eax, dword [0x5681d8]
mov eax, dword [eax + 0x28]
cmp eax, 0xffffffff
jne 0x4cce59
call fcn.00535190
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x78]
push eax
call fcn.00535180
mov ecx, dword [0x5681d8]
add esp, 4
mov eax, dword [esi + 0x78]
mov dword [ecx + 0x30], eax
call fcn.00535190
push eax
mov dword [esi + 0x78], eax
push str.World:_new_game__rand_d_
mov ecx, dword [0x568140]
push ecx
call fcn.005241b0
mov edx, dword [esp + 0x128]
add esp, 0xc
mov ax, word [edx + 0x294]
inc ax
mov word [esi + 0x3c], ax
movsx ecx, word [edx + 0x2a4]
movsx eax, word [edx + 0x2a2]
push ecx
push eax
mov ecx, dword [esi + 0x28]
call fcn.0042b660
call fcn.00535190
push eax
mov dword [esi + 0x78], eax
push str.__World:_after_new_map__rand_d_
mov ecx, dword [0x568140]
push ecx
call fcn.005241b0
mov edx, dword [esp + 0x128]
add esp, 0xc
mov ax, word [edx + 0x294]
inc ax
movsx ecx, ax
mov word [esi + 0x3c], ax
push ecx
push 4
call fcn.0052f7a0
mov dword [esi + 0x40], eax
mov ebx, dword [esi]
add esp, 8
mov ecx, esi
call dword [ebx + 0x5c]
call fcn.00535190
push eax
mov dword [esi + 0x78], eax
push str.__World:_after_gaia__rand_d_
mov ecx, dword [0x568140]
push ecx
call fcn.005241b0
mov edx, dword [esp + 0x128]
add esp, 0xc
mov ecx, esi
mov ebx, dword [esi]
push edx
call dword [ebx + 0x60]
call fcn.00535190
push eax
mov dword [esi + 0x78], eax
push str.__World:_after_players__rand_d_
mov ecx, dword [0x568140]
push ecx
mov edi, 1
call fcn.005241b0
add esp, 0xc
push edi
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 0x14]
call fcn.00521ef0
cmp eax, 2
je 0x4ccf6e
cmp eax, 4
jne 0x4ccff5
lea eax, [edi - 1]
mov ecx, dword [0x5681d8]
push eax
call fcn.004eb450
mov dword [esp + 0x14], eax
cmp eax, 1
jle 0x4ccff5
mov ebx, 1
push ebx
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 0x14]
call fcn.00521ef0
cmp eax, 2
je 0x4ccfa1
cmp eax, 4
jne 0x4ccfef
lea eax, [ebx - 1]
mov ecx, dword [0x5681d8]
push eax
call fcn.004eb450
cmp eax, dword [esp + 0x14]
jne 0x4ccfef
push edi
mov ecx, dword [0x5681d8]
call fcn.004ebb60
mov ebp, eax
push ebx
mov ecx, dword [0x5681d8]
call fcn.004ebb60
cmp eax, ebp
je 0x4ccfef
push 0
push eax
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + ebp*4]
call fcn.00465e50
push 1
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + ebp*4]
call fcn.00465e20
inc ebx
cmp ebx, 9
jl 0x4ccf8b
inc edi
cmp edi, 9
jl 0x4ccf54
mov ecx, dword [0x5681d8]
call fcn.004eb1d0
test eax, eax
je 0x4cd0c7
mov ecx, dword [0x5681d8]
call fcn.004eb1e0
test eax, eax
jne 0x4cd0c7
mov edi, 1
push edi
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 0x14]
call fcn.00521ef0
cmp eax, 4
je 0x4cd04f
mov eax, dword [0x568178]
cmp eax, 1
je 0x4cd04f
cmp eax, 2
jne 0x4cd0bd
cmp edi, 1
jle 0x4cd0bd
lea eax, [edi - 1]
mov ecx, dword [0x5681d8]
push eax
call fcn.004eb450
cmp eax, 1
jne 0x4cd0bd
mov ebx, 1
push ebx
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 0x14]
call fcn.00521ef0
cmp eax, 4
je 0x4cd07e
cmp eax, 2
jne 0x4cd0b7
push edi
mov ecx, dword [0x5681d8]
call fcn.004ebb60
mov ebp, eax
push ebx
mov ecx, dword [0x5681d8]
call fcn.004ebb60
cmp eax, ebp
je 0x4cd0b7
push 1
push eax
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + ebp*4]
call fcn.00465e50
push 1
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + ebp*4]
call fcn.00465e20
inc ebx
cmp ebx, 9
jl 0x4cd068
inc edi
cmp edi, 9
jl 0x4cd02a
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov ecx, dword [0x5681d8]
call fcn.004eb210
test eax, eax
je 0x4cd0f4
mov ecx, dword [0x5681d8]
call fcn.004ebc50
fstp dword [esi + 0x18]
jmp 0x4cd0fb
mov dword [esi + 0x18], 0x3f800000
xor ecx, ecx
mov edx, dword [esp + 0x11c]
mov byte [esi + 0x1c], cl
mov dword [esi + 0x84], ecx
mov eax, dword [edx + 0x298]
mov dword [esp + 0x14], ecx
test eax, eax
je 0x4cd12a
push edx
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0x78]
mov byte [esp + 0x13], al
jmp 0x4cd164
mov edx, dword [esp + 0x11c]
mov al, byte [edx + 0x2a8]
test al, al
je 0x4cd149
mov eax, dword [esi]
push edx
mov ecx, esi
call dword [eax + 0x74]
mov byte [esp + 0x13], al
jmp 0x4cd164
mov edx, dword [esp + 0x11c]
mov ecx, esi
push edx
mov eax, dword [esi]
call dword [eax + 0x64]
mov dword [esp + 0x14], 1
mov byte [esp + 0x13], al
mov ecx, esi
xor ebx, ebx
xor edi, edi
call fcn.004d0740
cmp word [esi + 0x3c], bx
jle 0x4cd193
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x4cd187
mov eax, dword [ecx]
call dword [eax + 0x90]
add ebx, 4
inc edi
movsx eax, word [esi + 0x3c]
cmp eax, edi
jg 0x4cd175
mov al, byte [esp + 0x13]
test al, al
je 0x4cd19f
mov byte [esi + 0x1d], 0
call fcn.00535190
push eax
mov dword [esi + 0x78], eax
push str.__World:_end_of_new_game__rand_d_
mov ecx, dword [0x568140]
push ecx
call fcn.005241b0
lea ecx, [esp + 0x24]
add esp, 0xc
mov edx, dword [0x5681d8]
nop
push 0x100
push ecx
push 0x277b
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x20]
mov ecx, dword [esp + 0x14]
cmp ecx, 1
jne 0x4cd22d
mov ebx, 1
cmp word [esi + 0x3c], bx
jle 0x4cd22d
mov edi, 4
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + edi]
test ecx, ecx
je 0x4cd221
mov edx, dword [esp + 0x11c]
lea ebp, [esp + 0x18]
movsx eax, word [edx + 0x2a0]
lea edx, [esp + 0x18]
push eax
push 0
mov eax, dword [ecx]
push ebp
push edx
lea edx, [esp + 0x28]
push edx
call dword [eax + 0x2c]
add edi, 4
inc ebx
movsx eax, word [esi + 0x3c]
cmp eax, ebx
jg 0x4cd1f2
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret 8