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

Disassembly:
sub esp, 0x160
mov al, byte [esp + 2]
push ebx
push ebp
push esi
push edi
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00401b60
or ecx, 0xffffffff
xor eax, eax
mov edi, str.LoadGameListBox
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.LoadGameListBox
lea ecx, [esp + 0x2c]
call fcn.004022a0
mov ecx, dword [0x5532c4]
test ecx, ecx
jne 0x4076b5
push 0x7c
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x4076ac
mov ecx, eax
call fcn.0046bac0
jmp 0x4076ae
xor eax, eax
mov dword [0x5532c4], eax
mov ecx, eax
push 0
push 0x52fb08
push 0x52f740
push 0
lea edx, [esp + 0x34]
push edx
call fcn.0046c550
push eax
call fcn.004fca98
add esp, 0x14
mov ebx, eax
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebx
call fcn.00401b60
test ebx, ebx
je 0x407a11
mov ecx, ebx
call fcn.0041bea0
mov esi, dword [0x553360]
test esi, esi
jne 0x407720
push 0x38
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x407717
mov ecx, eax
call fcn.0046eeb0
jmp 0x407719
xor eax, eax
mov dword [0x553360], eax
mov esi, eax
mov al, byte [esi + 0x10]
mov byte [esp + 0x4c], al
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x407732
xor eax, eax
jmp 0x40773a
mov eax, dword [esi + 0x18]
sub eax, ecx
sar eax, 2
test eax, eax
jge 0x407740
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.004fc0e2
add esp, 4
mov dword [esp + 0x50], eax
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 0x14]
push eax
push ecx
push esi
lea ecx, [esp + 0x58]
call fcn.00414ae0
mov ebp, dword [esp + 0x50]
cmp ebp, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
je 0x4079f2
mov ecx, ebx
call fcn.0041baf0
mov dl, byte [esp + 0x12]
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x28], dl
call fcn.00401b60
mov al, byte [esp + 0x12]
push 0
lea ecx, [esp + 0x60]
mov byte [esp + 0x60], al
call fcn.00401b60
lea ecx, [esp + 0x24]
push ecx
sub esp, 0x10
mov ecx, esp
lea edx, [esp + 0x26]
mov eax, 1
push edx
push str.Name
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], eax
call fcn.00401aa0
mov ecx, dword [ebp]
call fcn.0048aae0
lea eax, [esp + 0x14]
push eax
sub esp, 0x10
mov ecx, esp
lea edx, [esp + 0x37]
push edx
push str.iWorld
call fcn.00401aa0
mov ecx, dword [ebp]
call fcn.00489b10
lea eax, [esp + 0x34]
push eax
sub esp, 0x10
mov ecx, esp
lea edx, [esp + 0x2f]
push edx
push str.iEpisode
call fcn.00401aa0
mov ecx, dword [ebp]
call fcn.00489b10
lea eax, [esp + 0x5c]
push eax
sub esp, 0x10
mov ecx, esp
lea edx, [esp + 0x27]
push edx
push str.sTime
call fcn.00401aa0
mov ecx, dword [ebp]
call fcn.0048aae0
cmp dword [esp + 0x14], 5
mov ecx, dword [0x553390]
jle 0x40789c
test ecx, ecx
jne 0x40786d
push 0xc
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x407864
mov ecx, eax
call fcn.0047dc40
jmp 0x407866
xor eax, eax
mov dword [0x553390], eax
mov ecx, eax
push str.Completed
call fcn.0047dc70
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
lea edx, [esp + 0x6c]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4078e2
test ecx, ecx
jne 0x4078c0
push 0xc
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x4078b7
mov ecx, eax
call fcn.0047dc40
jmp 0x4078b9
xor eax, eax
mov dword [0x553390], eax
mov ecx, eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
push edx
push eax
push str.World__i_Episode__i
call fcn.0047dc70
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.004fc66c
add esp, 0x10
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x24]
push edx
push 0
push eax
mov ecx, ebx
call fcn.0041bed0
mov cl, byte [esp + 0x13]
mov byte [esp + 0x3c], cl
push 0
lea ecx, [esp + 0x40]
call fcn.00401b60
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x6c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
push 1
push ebx
lea ecx, [esp + 0x44]
call fcn.00401bd0
test al, al
je 0x40794c
mov edi, dword [esp + 0x40]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ebx
mov byte [ebx + eax], 0
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
push 1
push esi
mov ecx, edi
call fcn.0041bed0
push 1
lea ecx, [esp + 0x40]
call fcn.00401b60
lea edx, [esp + 0x5c]
push edx
push 2
push esi
mov ecx, edi
call fcn.0041bed0
mov ecx, dword [esp + 0x60]
xor esi, esi
cmp ecx, esi
je 0x4079a3
mov al, byte [ecx - 1]
test al, al
je 0x407999
cmp al, 0xff
je 0x407999
dec al
mov byte [ecx - 1], al
jmp 0x4079a3
dec ecx
push ecx
call fcn.004ef70e
add esp, 4
mov ecx, dword [esp + 0x28]
cmp ecx, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
je 0x4079d3
mov al, byte [ecx - 1]
test al, al
je 0x4079c9
cmp al, 0xff
je 0x4079c9
dec al
mov byte [ecx - 1], al
jmp 0x4079d3
dec ecx
push ecx
call fcn.004ef70e
add esp, 4
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x1c]
add ebp, 4
cmp ebp, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
jne 0x40777a
push 1
mov ecx, ebx
call fcn.0041c070
push 0
mov ecx, ebx
call fcn.0041c0a0
mov eax, dword [esp + 0x50]
push eax
call fcn.004ef70e
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret