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

Disassembly:
push 0xffffffffffffffff
push 0x495899
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 0x42dfeb
cmp eax, 3
jle 0x42df7d
cmp eax, 7
jne 0x42dfeb
mov edi, dword [esi + 0x198]
cmp edi, ebp
je 0x42df6b
mov ecx, edi
call fcn.0041fc20
push edi
call fcn.004859a0
add esp, 4
push ebp
push 3
mov ecx, esi
mov dword [esi + 0x198], ebp
call fcn.00442480
jmp 0x42dfeb
mov eax, dword [0x4aa0d8]
xor ebx, ebx
cmp eax, ebp
jle 0x42dfbb
mov eax, dword [esi + 0x11c]
mov edi, dword [eax + ebp + 0xa8]
test edi, edi
je 0x42dfa9
mov ecx, edi
call fcn.00405a70
push edi
call fcn.004859a0
add esp, 4
mov eax, dword [0x4aa0d8]
inc ebx
add ebp, 0xac
cmp ebx, eax
jl 0x42df88
xor ebp, ebp
mov eax, dword [esi + 0x11c]
cmp eax, ebp
je 0x42dfe5
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x42e660
push ecx
push 0xac
push eax
call fcn.00465870
push edi
call fcn.004859a0
add esp, 4
mov dword [esi + 0x11c], ebp
sub esp, 0x10
mov edx, dword [0x4aa0d0]
mov ebx, esp
xor eax, eax
mov edi, dword [0x4aa0d4]
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.0x42e026
jmp dword [eax*4 + 0x42e5c0]
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.0048542a
or ebx, 0xffffffff
mov dword [esi + 0x120], ebx
mov edi, dword [0x4aa0d8]
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.00485977
add esp, 4
mov dword [esp + 0x6c], eax
cmp eax, ebp
mov dword [esp + 0x64], 2
je 0x42e0b8
push 0x42e660
push 0x42e5f0
lea ebp, [eax + 4]
push edi
push 0xac
push ebp
mov dword [eax], edi
call fcn.004657ee
mov dword [esp + 0x64], ebx
mov dword [esi + 0x11c], ebp
mov eax, dword [0x4aa0d8]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jle 0x42e0f6
xor ebp, ebp
mov edx, dword [esi + 0x11c]
push edi
mov ecx, esi
mov dword [edx + ebp + 0xa8], ebx
call fcn.00428b00
mov eax, dword [0x4aa0d8]
inc edi
add ebp, 0xac
cmp edi, eax
jl 0x42e0d1
mov edi, dword [esi + 0x194]
cmp edi, ebx
je 0x42e110
mov ecx, edi
call fcn.0041fc20
push edi
call fcn.004859a0
add esp, 4
push 0x4c
call fcn.00485977
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
cmp edi, ebx
mov dword [esp + 0x64], 3
je 0x42e175
mov eax, dword [esi + 0xd30]
cmp eax, 2
mov eax, str.syste1_save_save.scn
je 0x42e141
mov eax, str.syste1_saveload.scn
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00485498
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.0041f660
jmp 0x42e177
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 0x42e195
lea ecx, [esp + 0x18]
call fcn.0048542a
mov edi, dword [esi + 0x194]
push 0x4ad154
mov ecx, edi
call fcn.0041fe40
cmp eax, ebx
jge 0x42e1c1
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 0x42e1c7
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 [0x49948c]
test eax, eax
je 0x42e2a4
mov dword [esi + 0x2b0], ebx
mov edx, dword [0x4afb38]
mov dword [esp + 0x6c], edx
push ebx
lea eax, [esp + 0x70]
mov edi, 6
push 0x4ad148
push eax
mov dword [esp + 0x70], edi
call fcn.00483e7d
mov ecx, dword [esp + 0x78]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x194]
call fcn.0041fe40
cmp eax, ebp
je 0x42e284
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], ebp
call fcn.0048542a
mov eax, dword [esi + 0x2b0]
inc eax
mov dword [esi + 0x2b0], eax
mov edx, dword [0x4afb38]
mov dword [esp + 0x6c], edx
push eax
lea eax, [esp + 0x70]
push 0x4ad148
push eax
mov dword [esp + 0x70], edi
call fcn.00483e7d
mov ecx, dword [esp + 0x78]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x194]
call fcn.0041fe40
cmp eax, ebp
jne 0x42e235
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], ebp
call fcn.0048542a
mov ecx, esi
call fcn.00429360
mov ecx, esi
call fcn.00431850
jmp case.default.0x42e026
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub eax, edx
cdq
idiv dword [esi + 0x448]
cmp eax, 1
jg 0x42e2bf
mov eax, 1
mov ecx, esi
mov dword [esi + 0x2b0], eax
call fcn.00429360
mov ecx, esi
call fcn.00431850
jmp case.default.0x42e026
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.0048542a
mov edi, dword [esi + 0x194]
cmp edi, ebp
je 0x42e327
mov ecx, edi
call fcn.0041fc20
push edi
call fcn.004859a0
add esp, 4
push 0x4c
call fcn.00485977
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
cmp edi, ebp
mov dword [esp + 0x64], 7
je 0x42e37b
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.syste1config_bg.scn
call fcn.00485498
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.0041f660
jmp 0x42e37d
xor eax, eax
mov dword [esi + 0x194], eax
mov al, byte [esp + 0x10]
test al, 2
mov dword [esp + 0x64], ebx
je 0x42e398
lea ecx, [esp + 0x20]
call fcn.0048542a
mov ecx, esi
call fcn.00431850
jmp case.default.0x42e026
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.0048542a
mov edi, dword [esi + 0x194]
cmp edi, ebp
je 0x42e3ea
mov ecx, edi
call fcn.0041fc20
push edi
call fcn.004859a0
add esp, 4
push 0x4c
call fcn.00485977
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
cmp edi, ebp
mov dword [esp + 0x64], 0xa
mov ebx, 4
je 0x42e43f
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.syste1_status_bg.scn
call fcn.00485498
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.0041f660
jmp 0x42e441
xor eax, eax
mov dword [esi + 0x194], eax
mov al, byte [esp + 0x10]
test bl, al
mov dword [esp + 0x64], 0xffffffff
je 0x42e460
lea ecx, [esp + 0x28]
call fcn.0048542a
mov ecx, esi
call fcn.00431850
jmp case.default.0x42e026
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 0x42e4d4
cmp eax, dword [esi + 0x7f8]
jge 0x42e4c2
cmp eax, ebp
jl 0x42e4c2
mov ecx, dword [esi + 0x7f0]
mov edx, eax
dec eax
test edx, edx
je 0x42e4c4
inc eax
mov ecx, dword [ecx]
dec eax
jne 0x42e4ad
mov eax, dword [ecx + 8]
mov ecx, esi
push eax
call fcn.004403c0
jmp case.default.0x42e026
xor ecx, ecx
mov eax, dword [ecx + 8]
mov ecx, esi
push eax
call fcn.004403c0
jmp case.default.0x42e026
mov ecx, dword [esi + 0x258]
push ecx
mov ecx, esi
call fcn.004403c0
jmp case.default.0x42e026
mov edi, dword [esi + 0x184]
push 0x4ad110
mov ecx, edi
call fcn.0041fe40
cmp eax, ebp
jge 0x42e513
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 0x42e519
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 [0x49948c]
test eax, eax
jne 0x42e54b
mov dword [esi + 0x210], ebp
jmp case.default.0x42e026
mov dword [esi + 0x210], 0xffffffff
jmp case.default.0x42e026
mov dword [esi + 0x3d4], 0x4ad100
jmp 0x42e5a1
cmp dword [esi + 0x3c4], ebp
je 0x42e573
mov dword [esi + 0x210], ebp
jmp case.default.0x42e026
mov dword [esi + 0x3d4], 0x4ad0e8
jmp 0x42e5a1
mov dword [esi + 0x3d4], 0x4ad0c8
jmp 0x42e5a1
mov dword [esi + 0x3d4], 0x4ad0a8
jmp 0x42e5a1
mov dword [esi + 0x3d4], 0x4ad080
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