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

Disassembly:
push 0xffffffffffffffff
push 0x4bdd98
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xd58c], ebx
jle 0x487df3
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.004538a0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
lea edi, [esi + 0xc]
mov dword [eax + 8], eax
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
push eax
mov ecx, edi
mov dword [esp + 0x20], edi
call fcn.004538a0
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov eax, dword [edi + 4]
lea ecx, [esp + 0x34]
mov dword [eax + 8], eax
call fcn.0047db60
lea eax, [esi + 0xd538]
push str.configgamelist.txt
push eax
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x2c], eax
call fcn.00416030
add esp, 0xc
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 1
call fcn.0047e500
mov ebp, 0x10
cmp dword [esp + 0x6c], ebp
mov byte [esp + 0x78], bl
jb 0x4879ca
mov edx, dword [esp + 0x58]
push edx
call fcn.0048d433
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
call fcn.0047cce0
test eax, eax
jbe 0x487bbc
nop
lea ecx, [esp + 0x44]
call fcn.0047db60
mov eax, dword [esp + 0x14]
push 0x2c
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 2
call fcn.0047cc90
push eax
lea ecx, [esp + 0x4c]
call fcn.0047e370
lea ecx, [esp + 0x44]
call fcn.0047cce0
cmp eax, 3
jae 0x487a2b
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], bl
call fcn.0047db70
jmp 0x487ba4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x7c], 3
call fcn.0047cc90
cmp dword [eax + 0x18], ebp
jb 0x487a51
mov edi, dword [eax + 4]
jmp 0x487a54
lea edi, [eax + 4]
mov eax, edi
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x487a70
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x5c]
call fcn.00401e90
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 4
call fcn.00451a90
cmp dword [esp + 0x6c], ebp
mov byte [esp + 0x78], 3
jb 0x487ab1
mov edx, dword [esp + 0x58]
push edx
call fcn.0048d433
add esp, 4
push 2
lea ecx, [esp + 0x48]
call fcn.0047cc90
cmp dword [eax + 0x18], ebp
jb 0x487ac6
mov edi, dword [eax + 4]
jmp 0x487ac9
lea edi, [eax + 4]
mov eax, edi
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x487ae0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x5c]
call fcn.00401e90
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 5
call fcn.00451a90
cmp dword [esp + 0x6c], ebp
mov byte [esp + 0x78], 3
jb 0x487b21
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0048d433
add esp, 4
push ebx
lea ecx, [esp + 0x48]
call fcn.0047cc90
cmp dword [eax + 0x18], ebp
jb 0x487b35
mov eax, dword [eax + 4]
jmp 0x487b38
add eax, 4
push eax
call fcn.0048e702
add esp, 4
lea edx, [esp + 0x24]
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004877b0
mov ecx, eax
call fcn.00486340
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x487b87
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x28]
push edx
push ecx
push eax
call fcn.0044e490
mov edx, dword [esp + 0x38]
push edx
call fcn.0048d433
add esp, 0x14
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x78], bl
call fcn.0047db70
mov edi, dword [esp + 0x1c]
add dword [esp + 0x14], 1
lea ecx, [esp + 0x34]
call fcn.0047cce0
cmp dword [esp + 0x14], eax
jb 0x4879e0
mov eax, dword [esp + 0x20]
push str.config_newgamelist.txt
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.00416030
add esp, 0xc
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 6
call fcn.0047e500
cmp dword [esp + 0x6c], ebp
mov byte [esp + 0x78], bl
jb 0x487bf9
mov edx, dword [esp + 0x58]
push edx
call fcn.0048d433
add esp, 4
mov esi, 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], esi
call fcn.0047cce0
cmp eax, esi
jbe 0x487de2
lea ecx, [esp + 0x44]
call fcn.0047db60
push 0x2c
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 7
call fcn.0047cc90
push eax
lea ecx, [esp + 0x4c]
call fcn.0047e370
lea ecx, [esp + 0x44]
call fcn.0047cce0
cmp eax, 3
jae 0x487c5a
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], bl
call fcn.0047db70
jmp 0x487dca
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x7c], 8
call fcn.0047cc90
cmp dword [eax + 0x18], ebp
jb 0x487c80
mov esi, dword [eax + 4]
jmp 0x487c83
lea esi, [eax + 4]
mov eax, esi
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x487c98
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.00401e90
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 9
call fcn.00451a90
cmp dword [esp + 0x6c], ebp
mov byte [esp + 0x78], 8
jb 0x487cd9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0048d433
add esp, 4
push 2
lea ecx, [esp + 0x48]
call fcn.0047cc90
cmp dword [eax + 0x18], ebp
jb 0x487cee
mov esi, dword [eax + 4]
jmp 0x487cf1
lea esi, [eax + 4]
mov eax, esi
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x487d06
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.00401e90
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0xa
call fcn.00451a90
cmp dword [esp + 0x6c], ebp
mov byte [esp + 0x78], 8
jb 0x487d47
mov eax, dword [esp + 0x58]
push eax
call fcn.0048d433
add esp, 4
push ebx
lea ecx, [esp + 0x48]
call fcn.0047cc90
cmp dword [eax + 0x18], ebp
jb 0x487d5b
mov eax, dword [eax + 4]
jmp 0x487d5e
add eax, 4
push eax
call fcn.0048e702
add esp, 4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, edi
mov dword [esp + 0x28], eax
call fcn.004877b0
mov ecx, eax
call fcn.00486340
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x487dad
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x28]
push edx
push ecx
push eax
call fcn.0044e490
mov edx, dword [esp + 0x38]
push edx
call fcn.0048d433
add esp, 0x14
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x78], bl
call fcn.0047db70
mov esi, dword [esp + 0x14]
add esi, 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], esi
call fcn.0047cce0
cmp esi, eax
jb 0x487c13
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], 0xffffffff
call fcn.0047db70
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret