Function at 0x404290
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x41bb48
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4231f0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
mov eax, dword [ebp]
push eax
call fcn.004027f0
add esp, 4
test al, al
jne 0x4042dd
push str.Create_main_window_failed
call fcn.00401c30
add esp, 4
call fcn.00406d2b
mov edi, 0x10
cmp dword [ebp + 0x38], edi
jb 0x4042ec
mov eax, dword [ebp + 0x24]
jmp 0x4042ef
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x38], edi
jb 0x404300
mov ecx, dword [ebp + 0x24]
jmp 0x404303
lea ecx, [ebp + 0x24]
mov edx, 0x424620
xor ebx, ebx
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x404310
push str.NsCore.dll
call fcn.00402660
add esp, 4
test al, al
jne 0x40433d
push str.Load_core_dll_failed
call fcn.00401c30
add esp, 4
call fcn.00406d2b
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov ecx, dword [esp + 0x68]
mov edx, dword [ebp]
mov eax, dword [0x424758]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0x100000
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp dword [ebp + 0x38], edi
jb 0x40439b
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x6c], ecx
jmp 0x4043a2
lea edx, [ebp + 0x24]
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x6c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4043b0
sub eax, edx
jne 0x4043bf
xor esi, esi
jmp 0x4043de
lea edi, [eax + 1]
push edi
call fcn.00404e5f
mov esi, eax
mov eax, dword [esp + 0x70]
push edi
push eax
push esi
call fcn.00405140
add esp, 0x10
mov edi, 0x10
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], esi
cmp eax, ebx
je 0x4043f3
push eax
call fcn.00405824
add esp, 4
cmp dword [ebp + 0x54], edi
jb 0x4043fd
mov eax, dword [ebp + 0x40]
jmp 0x404400
lea eax, [ebp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.004039c0
add esp, 8
test al, al
jne 0x404424
push str.load_ini_failed
call fcn.00401c30
add esp, 4
call fcn.00406d2b
push str.Initialize_...
call fcn.004025f0
mov ecx, dword [0x424728]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
add esp, 4
push fcn.004025f0
lea eax, [esp + 0x18]
push eax
call edx
test al, al
jne 0x40445e
push str.Initialize_core_failed
call fcn.00401c30
add esp, 4
call fcn.00406d2b
mov ecx, dword [0x424728]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
mov dword [0x424724], eax
cmp eax, ebx
jne 0x404486
push str.Get_core_failed
call fcn.00401c30
add esp, 4
call fcn.00406d2b
mov eax, dword [0x42472c]
push eax
call fcn.00415220
push eax
push str.load_core_at_address_0x_08X
call fcn.00402550
push str.Start_up_...
call fcn.004025f0
mov ecx, dword [0x424728]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
add esp, 0x10
add ebp, 0x60
push ebp
call eax
test al, al
jne 0x4044d0
push str.Startup_core_failed
call fcn.00401c30
add esp, 4
call fcn.00406d2b
cmp byte [0x424730], bl
jne 0x4044f4
push str.Initialize_core_finished.
call fcn.004025f0
mov ecx, dword [0x42475c]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x404501
push str.Wait_for_game_start...
call fcn.004025f0
add esp, 4
mov ecx, dword [0x424724]
mov edx, dword [ecx]
mov eax, dword [edx + 0x94]
push str.World
call eax
lea ecx, [esp + 0x14]
call fcn.00403470
mov al, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret