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

Disassembly:
push 0xffffffffffffffff
push 0x492f89
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 + 0xd30]
mov dword [esp + 0x10], ebp
cmp eax, 2
jl 0x42d30b
cmp eax, 3
jle 0x42d29d
cmp eax, 7
jne 0x42d30b
mov edi, dword [esi + 0x198]
cmp edi, ebp
je 0x42d28b
mov ecx, edi
call fcn.0041f060
push edi
call fcn.004831a0
add esp, 4
push ebp
push 3
mov ecx, esi
mov dword [esi + 0x198], ebp
call fcn.00440c70
jmp 0x42d30b
mov eax, dword [0x4a70d8]
xor ebx, ebx
cmp eax, ebp
jle 0x42d2db
mov eax, dword [esi + 0x11c]
mov edi, dword [eax + ebp + 0xa8]
test edi, edi
je 0x42d2c9
mov ecx, edi
call fcn.004058d0
push edi
call fcn.004831a0
add esp, 4
mov eax, dword [0x4a70d8]
inc ebx
add ebp, 0xac
cmp ebx, eax
jl 0x42d2a8
xor ebp, ebp
mov eax, dword [esi + 0x11c]
cmp eax, ebp
je 0x42d305
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x42d980
push ecx
push 0xac
push eax
call fcn.00463060
push edi
call fcn.004831a0
add esp, 4
mov dword [esi + 0x11c], ebp
sub esp, 0x10
mov edx, dword [0x4a70d0]
mov ebx, esp
xor eax, eax
mov edi, dword [0x4a70d4]
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 + 0xd30], eax
dec eax
cmp eax, 0xa
ja case.default.0x42d346
jmp dword [eax*4 + 0x42d8e0]
mov edx, dword [esi + 0x2b4]
push ecx
mov eax, esp
mov dword [esp + 0x70], esp
push eax
mov dword [esi + 0x2ac], 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.00482c2a
or ebx, 0xffffffff
mov dword [esi + 0x120], ebx
mov edi, dword [0x4a70d8]
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.00483177
add esp, 4
mov dword [esp + 0x6c], eax
cmp eax, ebp
mov dword [esp + 0x64], 2
je 0x42d3d8
push 0x42d980
push 0x42d910
lea ebp, [eax + 4]
push edi
push 0xac
push ebp
mov dword [eax], edi
call fcn.00462fde
mov dword [esp + 0x64], ebx
mov dword [esi + 0x11c], ebp
mov eax, dword [0x4a70d8]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jle 0x42d416
xor ebp, ebp
mov edx, dword [esi + 0x11c]
push edi
mov ecx, esi
mov dword [edx + ebp + 0xa8], ebx
call fcn.00427e80
mov eax, dword [0x4a70d8]
inc edi
add ebp, 0xac
cmp edi, eax
jl 0x42d3f1
mov edi, dword [esi + 0x194]
cmp edi, ebx
je 0x42d430
mov ecx, edi
call fcn.0041f060
push edi
call fcn.004831a0
add esp, 4
push 0x4c
call fcn.00483177
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
cmp edi, ebx
mov dword [esp + 0x64], 3
je 0x42d495
mov eax, dword [esi + 0xd30]
cmp eax, 2
mov eax, str.system_save_save.scn
je 0x42d461
mov eax, str.system_saveload.scn
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00482c98
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.0041ebb0
jmp 0x42d497
xor eax, eax
mov dword [esi + 0x194], eax
mov al, byte [esp + 0x10]
or ebp, 0xffffffff
test al, 1
mov dword [esp + 0x64], ebp
je 0x42d4b5
lea ecx, [esp + 0x18]
call fcn.00482c2a
mov edi, dword [esi + 0x194]
push 0x4aa094
mov ecx, edi
call fcn.0041f260
cmp eax, ebx
jge 0x42d4e1
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 0x42d4e7
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 [0x49648c]
test eax, eax
je 0x42d5c4
mov dword [esi + 0x2b0], ebx
mov edx, dword [0x4aca3c]
mov dword [esp + 0x6c], edx
push ebx
lea eax, [esp + 0x70]
mov edi, 6
push 0x4aa088
push eax
mov dword [esp + 0x70], edi
call fcn.0048167d
mov ecx, dword [esp + 0x78]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x194]
call fcn.0041f260
cmp eax, ebp
je 0x42d5a4
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], ebp
call fcn.00482c2a
mov eax, dword [esi + 0x2b0]
inc eax
mov dword [esi + 0x2b0], eax
mov edx, dword [0x4aca3c]
mov dword [esp + 0x6c], edx
push eax
lea eax, [esp + 0x70]
push 0x4aa088
push eax
mov dword [esp + 0x70], edi
call fcn.0048167d
mov ecx, dword [esp + 0x78]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x194]
call fcn.0041f260
cmp eax, ebp
jne 0x42d555
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], ebp
call fcn.00482c2a
mov ecx, esi
call fcn.004286e0
mov ecx, esi
call fcn.004309d0
jmp case.default.0x42d346
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub eax, edx
cdq
idiv dword [esi + 0x448]
cmp eax, 1
jg 0x42d5df
mov eax, 1
mov ecx, esi
mov dword [esi + 0x2b0], eax
call fcn.004286e0
mov ecx, esi
call fcn.004309d0
jmp case.default.0x42d346
push ecx
or ebx, 0xffffffff
mov edx, esp
mov dword [esp + 0x70], esp
push edx
mov dword [esi + 0x3a4], ebp
mov dword [esi + 0x390], 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.00482c2a
mov edi, dword [esi + 0x194]
cmp edi, ebp
je 0x42d647
mov ecx, edi
call fcn.0041f060
push edi
call fcn.004831a0
add esp, 4
push 0x4c
call fcn.00483177
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
cmp edi, ebp
mov dword [esp + 0x64], 7
je 0x42d69b
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.systemconfig_bg.scn
call fcn.00482c98
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.0041ebb0
jmp 0x42d69d
xor eax, eax
mov dword [esi + 0x194], eax
mov al, byte [esp + 0x10]
test al, 2
mov dword [esp + 0x64], ebx
je 0x42d6b8
lea ecx, [esp + 0x20]
call fcn.00482c2a
mov ecx, esi
call fcn.004309d0
jmp case.default.0x42d346
push ecx
mov dword [esi + 0x3a4], 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.00482c2a
mov edi, dword [esi + 0x194]
cmp edi, ebp
je 0x42d70a
mov ecx, edi
call fcn.0041f060
push edi
call fcn.004831a0
add esp, 4
push 0x4c
call fcn.00483177
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
cmp edi, ebp
mov dword [esp + 0x64], 0xa
mov ebx, 4
je 0x42d75f
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.system_status_bg.scn
call fcn.00482c98
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.0041ebb0
jmp 0x42d761
xor eax, eax
mov dword [esi + 0x194], eax
mov al, byte [esp + 0x10]
test bl, al
mov dword [esp + 0x64], 0xffffffff
je 0x42d780
lea ecx, [esp + 0x28]
call fcn.00482c2a
mov ecx, esi
call fcn.004309d0
jmp case.default.0x42d346
mov eax, dword [esi + 0x7f8]
xor edx, edx
dec eax
cmp eax, ebp
mov dword [esi + 0x394], eax
setle dl
dec edx
and eax, edx
mov dword [esi + 0x398], eax
mov eax, dword [esi + 0x394]
cmp eax, ebp
jl 0x42d7f4
cmp eax, dword [esi + 0x7f8]
jge 0x42d7e2
cmp eax, ebp
jl 0x42d7e2
mov ecx, dword [esi + 0x7f0]
mov edx, eax
dec eax
test edx, edx
je 0x42d7e4
inc eax
mov ecx, dword [ecx]
dec eax
jne 0x42d7cd
mov eax, dword [ecx + 8]
mov ecx, esi
push eax
call fcn.0043ebc0
jmp case.default.0x42d346
xor ecx, ecx
mov eax, dword [ecx + 8]
mov ecx, esi
push eax
call fcn.0043ebc0
jmp case.default.0x42d346
mov ecx, dword [esi + 0x258]
push ecx
mov ecx, esi
call fcn.0043ebc0
jmp case.default.0x42d346
mov edi, dword [esi + 0x184]
push 0x4aa050
mov ecx, edi
call fcn.0041f260
cmp eax, ebp
jge 0x42d833
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 0x42d839
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 [0x49648c]
test eax, eax
jne 0x42d86b
mov dword [esi + 0x210], ebp
jmp case.default.0x42d346
mov dword [esi + 0x210], 0xffffffff
jmp case.default.0x42d346
mov dword [esi + 0x3d4], 0x4aa040
jmp 0x42d8c1
cmp dword [esi + 0x3c4], ebp
je 0x42d893
mov dword [esi + 0x210], ebp
jmp case.default.0x42d346
mov dword [esi + 0x3d4], 0x4aa028
jmp 0x42d8c1
mov dword [esi + 0x3d4], 0x4aa008
jmp 0x42d8c1
mov dword [esi + 0x3d4], 0x4a9fe8
jmp 0x42d8c1
mov dword [esi + 0x3d4], 0x4a9fc0
mov dword [esi + 0x210], 1
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 4