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

Disassembly:
push 0xffffffffffffffff
push 0x486849
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0xde8]
mov dword [esp + 0x10], ebp
cmp eax, 2
jl 0x4243ab
cmp eax, 3
jle 0x42433d
cmp eax, 7
jne 0x4243ab
mov edi, dword [esi + 0x194]
cmp edi, ebp
je 0x42432b
mov ecx, edi
call fcn.00417700
push edi
call fcn.00476eda
add esp, 4
push ebp
push 3
mov ecx, esi
mov dword [esi + 0x194], ebp
call fcn.00436000
jmp 0x4243ab
mov eax, dword [0x4990c8]
xor ebx, ebx
cmp eax, ebp
jle 0x42437b
mov eax, dword [esi + 0x118]
mov edi, dword [eax + ebp + 0xa8]
test edi, edi
je 0x424369
mov ecx, edi
call fcn.00405790
push edi
call fcn.00476eda
add esp, 4
mov eax, dword [0x4990c8]
inc ebx
add ebp, 0xac
cmp ebx, eax
jl 0x424348
xor ebp, ebp
mov eax, dword [esi + 0x118]
cmp eax, ebp
je 0x4243a5
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x424a20
push ecx
push 0xac
push eax
call fcn.00457160
push edi
call fcn.00476eda
add esp, 4
mov dword [esi + 0x118], ebp
sub esp, 0x10
mov edx, dword [0x4990c0]
mov ebx, esp
xor eax, eax
mov edi, dword [0x4990c4]
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00402ee0
mov eax, dword [esp + 0x6c]
mov dword [esi + 0xde8], eax
dec eax
cmp eax, 0xa
ja case.default.0x4243e6
jmp dword [eax*4 + 0x424980]
mov edx, dword [esi + 0x35c]
push ecx
mov eax, esp
mov dword [esp + 0x70], esp
push eax
mov dword [esi + 0x354], edx
call fcn.00401730
add esp, 4
lea ecx, [esp + 0x18]
push ecx
call fcn.00401080
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00476964
or ebx, 0xffffffff
mov dword [esi + 0x11c], ebx
mov edi, dword [0x4990c8]
lea eax, [edi*8]
sub eax, edi
lea edx, [eax + eax*2]
lea eax, [edi + edx*2]
lea ecx, [eax*4 + 4]
push ecx
call fcn.00476eb1
add esp, 4
mov dword [esp + 0x6c], eax
cmp eax, ebp
mov dword [esp + 0x64], 2
je 0x424478
push 0x424a20
push 0x4249b0
lea ebp, [eax + 4]
push edi
push 0xac
push ebp
mov dword [eax], edi
call fcn.004570de
mov dword [esp + 0x64], ebx
mov dword [esi + 0x118], ebp
mov eax, dword [0x4990c8]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jle 0x4244b6
xor ebp, ebp
mov edx, dword [esi + 0x118]
push edi
mov ecx, esi
mov dword [edx + ebp + 0xa8], ebx
call fcn.0041f5f0
mov eax, dword [0x4990c8]
inc edi
add ebp, 0xac
cmp edi, eax
jl 0x424491
mov edi, dword [esi + 0x190]
cmp edi, ebx
je 0x4244d0
mov ecx, edi
call fcn.00417700
push edi
call fcn.00476eda
add esp, 4
push 0x44
call fcn.00476eb1
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
cmp edi, ebx
mov dword [esp + 0x64], 3
je 0x424535
mov eax, dword [esi + 0xde8]
cmp eax, 2
mov eax, str.system_save_save.scn
je 0x424501
mov eax, str.system_saveload.scn
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004769d2
lea eax, [esp + 0x1c]
push eax
call fcn.004013c0
add esp, 8
mov dword [esp + 0x10], 1
mov eax, dword [eax]
mov ecx, edi
push eax
push esi
mov byte [esp + 0x6c], 4
call fcn.004172a0
jmp 0x424537
xor eax, eax
mov dword [esi + 0x190], eax
mov al, byte [esp + 0x10]
or ebp, 0xffffffff
test al, 1
mov dword [esp + 0x64], ebp
je 0x424555
lea ecx, [esp + 0x18]
call fcn.00476964
mov edi, dword [esi + 0x190]
push 0x49babc
mov ecx, edi
call fcn.00417900
cmp eax, ebx
jge 0x424581
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
lea eax, [esp + 0x3c]
jmp 0x424587
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], eax
push ecx
call dword [0x489460]
test eax, eax
je 0x424664
mov dword [esi + 0x358], ebx
mov edx, dword [0x49e2a4]
mov dword [esp + 0x6c], edx
push ebx
lea eax, [esp + 0x70]
mov edi, 6
push 0x49bab0
push eax
mov dword [esp + 0x70], edi
call fcn.004754c2
mov ecx, dword [esp + 0x78]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x190]
call fcn.00417900
cmp eax, ebp
je 0x424644
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], ebp
call fcn.00476964
mov eax, dword [esi + 0x358]
inc eax
mov dword [esi + 0x358], eax
mov edx, dword [0x49e2a4]
mov dword [esp + 0x6c], edx
push eax
lea eax, [esp + 0x70]
push 0x49bab0
push eax
mov dword [esp + 0x70], edi
call fcn.004754c2
mov ecx, dword [esp + 0x78]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x190]
call fcn.00417900
cmp eax, ebp
jne 0x4245f5
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], ebp
call fcn.00476964
mov ecx, esi
call fcn.0041fe30
mov ecx, esi
call fcn.00427320
jmp case.default.0x4243e6
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub eax, edx
cdq
idiv dword [esi + 0x4e8]
cmp eax, 1
jg 0x42467f
mov eax, 1
mov ecx, esi
mov dword [esi + 0x358], eax
call fcn.0041fe30
mov ecx, esi
call fcn.00427320
jmp case.default.0x4243e6
push ecx
or ebx, 0xffffffff
mov edx, esp
mov dword [esp + 0x70], esp
push edx
mov dword [esi + 0x44c], ebp
mov dword [esi + 0x438], ebx
call fcn.00401730
add esp, 4
lea eax, [esp + 0x20]
push eax
call fcn.00401080
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00476964
mov edi, dword [esi + 0x190]
cmp edi, ebp
je 0x4246e7
mov ecx, edi
call fcn.00417700
push edi
call fcn.00476eda
add esp, 4
push 0x44
call fcn.00476eb1
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
cmp edi, ebp
mov dword [esp + 0x64], 7
je 0x42473b
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.systemconfig_bg.scn
call fcn.004769d2
lea ecx, [esp + 0x24]
push ecx
call fcn.004013c0
add esp, 8
mov dword [esp + 0x10], 2
mov eax, dword [eax]
mov ecx, edi
push eax
push esi
mov byte [esp + 0x6c], 8
call fcn.004172a0
jmp 0x42473d
xor eax, eax
mov dword [esi + 0x190], eax
mov al, byte [esp + 0x10]
test al, 2
mov dword [esp + 0x64], ebx
je 0x424758
lea ecx, [esp + 0x20]
call fcn.00476964
mov ecx, esi
call fcn.00427320
jmp case.default.0x4243e6
push ecx
mov dword [esi + 0x44c], ebp
mov edx, esp
mov dword [esp + 0x70], esp
push edx
call fcn.00401730
add esp, 4
lea eax, [esp + 0x28]
push eax
call fcn.00401080
add esp, 8
lea ecx, [esp + 0x24]
call fcn.00476964
mov edi, dword [esi + 0x190]
cmp edi, ebp
je 0x4247aa
mov ecx, edi
call fcn.00417700
push edi
call fcn.00476eda
add esp, 4
push 0x44
call fcn.00476eb1
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
cmp edi, ebp
mov dword [esp + 0x64], 0xa
mov ebx, 4
je 0x4247ff
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.system_status_bg.scn
call fcn.004769d2
lea ecx, [esp + 0x2c]
push ecx
call fcn.004013c0
add esp, 8
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
mov ecx, edi
push eax
push esi
mov byte [esp + 0x6c], 0xb
call fcn.004172a0
jmp 0x424801
xor eax, eax
mov dword [esi + 0x190], eax
mov al, byte [esp + 0x10]
test bl, al
mov dword [esp + 0x64], 0xffffffff
je 0x424820
lea ecx, [esp + 0x28]
call fcn.00476964
mov ecx, esi
call fcn.00427320
jmp case.default.0x4243e6
mov eax, dword [esi + 0x898]
xor edx, edx
dec eax
cmp eax, ebp
mov dword [esi + 0x43c], eax
setle dl
dec edx
and eax, edx
mov dword [esi + 0x440], eax
mov eax, dword [esi + 0x43c]
cmp eax, ebp
jl 0x424894
cmp eax, dword [esi + 0x898]
jge 0x424882
cmp eax, ebp
jl 0x424882
mov ecx, dword [esi + 0x890]
mov edx, eax
dec eax
test edx, edx
je 0x424884
inc eax
mov ecx, dword [ecx]
dec eax
jne 0x42486d
mov eax, dword [ecx + 8]
mov ecx, esi
push eax
call fcn.00434300
jmp case.default.0x4243e6
xor ecx, ecx
mov eax, dword [ecx + 8]
mov ecx, esi
push eax
call fcn.00434300
jmp case.default.0x4243e6
mov ecx, dword [esi + 0x300]
push ecx
mov ecx, esi
call fcn.00434300
jmp case.default.0x4243e6
mov edi, dword [esi + 0x180]
push 0x49ba78
mov ecx, edi
call fcn.00417900
cmp eax, ebp
jge 0x4248d3
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
lea eax, [esp + 0x3c]
jmp 0x4248d9
mov edx, dword [edi + 0x24]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x4c]
mov dword [esp + 0x58], edx
push eax
call dword [0x489460]
test eax, eax
jne 0x42490b
mov dword [esi + 0x2b8], ebp
jmp case.default.0x4243e6
mov dword [esi + 0x2b8], 0xffffffff
jmp case.default.0x4243e6
mov dword [esi + 0x478], 0x49ba68
jmp 0x424961
cmp dword [esi + 0x46c], ebp
je 0x424933
mov dword [esi + 0x2b8], ebp
jmp case.default.0x4243e6
mov dword [esi + 0x478], 0x49ba50
jmp 0x424961
mov dword [esi + 0x478], 0x49ba30
jmp 0x424961
mov dword [esi + 0x478], 0x49ba10
jmp 0x424961
mov dword [esi + 0x478], 0x49b9e8
mov dword [esi + 0x2b8], 1
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 4