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

Disassembly:
push 0xffffffffffffffff
push 0x5f80ee
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
lea edi, [esp + 0x138]
call fcn.00491900
xor ebx, ebx
mov dword [esp + 0x200], ebx
cmp dword [esp + 0x14c], ebx
je 0x4918b8
mov eax, edi
push eax
call fcn.004d7a10
add esp, 4
test al, al
je 0x4918b8
sub esp, 0x1c
mov edx, edi
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call dword [0x610494]
lea esi, [esp + 0x18c]
call fcn.004d7320
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
lea edx, [esp + 0x38]
mov ecx, esi
mov byte [esp + 0x200], 2
call fcn.004d7380
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x24], esi
je 0x491891
lea edi, [esp + 0x11c]
call fcn.00406220
mov byte [esp + 0x200], 3
cmp dword [esp + 0x130], ebx
jne 0x491242
mov ecx, edi
mov byte [esp + 0x200], 2
call dword [0x6105a0]
lea ecx, [esp + 0x38]
push ecx
jmp 0x491896
lea edx, [esp + 0x11c]
push edx
call fcn.004d7a10
add esp, 4
test al, al
je 0x49187c
lea ecx, [esp + 0x18c]
push ecx
call fcn.004e1a50
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
cmp esi, ebx
mov byte [esp + 0x200], 6
mov dword [esp + 0x18], ebx
jbe 0x49149b
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x3c]
cmp esi, ebx
je 0x4912be
mov ecx, dword [esp + 0x40]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x4912c8
call dword [0x6105e8]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
lea eax, [edx + esi]
push eax
lea ecx, [esp + 0x158]
call dword [0x610494]
sub esp, 0x1c
lea eax, [esp + 0x170]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x220], 7
call dword [0x610494]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x48]
lea ecx, [esp + 0x190]
call fcn.004d75b0
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jne 0x49131d
xor edi, edi
jmp 0x491336
mov ecx, dword [esp + 0x50]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov ebp, dword [esp + 0x2c]
cmp ebp, ebx
mov esi, dword [esp + 0x30]
jne 0x491346
xor eax, eax
jmp 0x49135d
mov ecx, esi
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
je 0x49137b
lea ecx, [esp + 0x154]
mov byte [esp + 0x200], 6
call dword [0x6105a0]
jmp 0x491481
cmp ebp, ebx
je 0x491514
sub esi, ebp
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x491514
lea ecx, [esp + 0x154]
lea edi, [esp + 0x18c]
call fcn.004e2070
mov ebx, eax
test ebx, ebx
je 0x4917cb
xor edi, edi
lea esi, [esp + 0x48]
call fcn.005e3070
mov ecx, eax
lea esi, [esp + 0x58]
call fcn.004e29e0
mov ebp, eax
lea esi, [esp + 0x28]
mov byte [esp + 0x200], 8
call fcn.005e3070
mov ecx, eax
lea esi, [esp + 0x74]
call fcn.004e29e0
mov ecx, 0x10
mov byte [esp + 0x200], 9
cmp dword [ebp + 0x18], ecx
jb 0x491409
mov ebp, dword [ebp + 4]
jmp 0x49140c
add ebp, 4
cmp dword [eax + 0x18], ecx
jb 0x491416
mov eax, dword [eax + 4]
jmp 0x491419
add eax, 4
lea ecx, [ebx + 0x2c]
call fcn.005259e0
test eax, eax
je 0x491446
mov ecx, ebp
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x491430
sub ecx, esi
push ebp
lea edi, [eax + 0x18]
mov esi, ecx
call fcn.00528390
lea ecx, [esp + 0x74]
mov byte [esp + 0x200], 8
call dword [0x610510]
lea ecx, [esp + 0x58]
mov byte [esp + 0x200], 7
call dword [0x610510]
lea ecx, [esp + 0x154]
mov byte [esp + 0x200], 6
call dword [0x6105a0]
xor ebx, ebx
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], 0x1c
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jb 0x491297
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 0x190]
call fcn.004e22e0
mov eax, dword [esp + 0x13c]
mov esi, 8
cmp dword [esp + 0x150], esi
jae 0x4914cb
lea eax, [esp + 0x13c]
push eax
call dword [0x6101d0]
mov ecx, dword [esp + 0x13c]
and eax, 0xfffffffe
cmp dword [esp + 0x150], esi
jae 0x4914ec
lea ecx, [esp + 0x13c]
push eax
push ecx
call dword [0x6101c8]
cmp dword [esp + 0x150], esi
mov eax, dword [esp + 0x13c]
jae 0x49183c
lea eax, [esp + 0x13c]
jmp 0x49183c
push str.Caches
lea ecx, [esp + 0x5c]
call dword [0x610498]
lea ecx, [esp + 0x58]
lea edi, [esp + 0x18c]
mov byte [esp + 0x200], 0xa
call fcn.004e1d50
lea ecx, [esp + 0x58]
mov edi, eax
mov byte [esp + 0x200], 7
call dword [0x6105a0]
cmp edi, ebx
jne 0x4915a2
push str.Caches
lea ecx, [esp + 0x94]
call dword [0x610498]
lea edx, [esp + 0x18c]
push edx
lea ecx, [esp + 0x94]
xor edi, edi
mov byte [esp + 0x204], 0xb
call fcn.004e2140
lea ecx, [esp + 0x90]
mov edi, eax
mov byte [esp + 0x200], 7
call dword [0x6105a0]
cmp edi, ebx
je 0x4917cb
push str.Game
lea ecx, [esp + 0x78]
call dword [0x610498]
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x204], 0xc
call fcn.004e2140
lea ecx, [esp + 0x74]
mov edi, eax
mov byte [esp + 0x200], 7
call dword [0x6105a0]
cmp edi, ebx
je 0x4917cb
push 0x611548
lea ecx, [esp + 0x5c]
call dword [0x610498]
lea ecx, [esp + 0x154]
lea esi, [esp + 0x100]
mov byte [esp + 0x200], 0xd
call fcn.004e29e0
mov ebp, eax
lea ecx, [esp + 0x58]
lea esi, [esp + 0xc8]
mov byte [esp + 0x200], 0xe
call fcn.004e29e0
mov ecx, 0x10
mov byte [esp + 0x200], 0xf
cmp dword [ebp + 0x18], ecx
jb 0x491641
mov ebp, dword [ebp + 4]
jmp 0x491644
add ebp, 4
cmp dword [eax + 0x18], ecx
jb 0x49164e
mov eax, dword [eax + 4]
jmp 0x491651
add eax, 4
push ebp
mov ecx, edi
call fcn.00524540
lea ecx, [esp + 0xc8]
mov byte [esp + 0x200], 0xe
call dword [0x610510]
lea ecx, [esp + 0x100]
mov byte [esp + 0x200], 0xd
call dword [0x610510]
lea ecx, [esp + 0x58]
mov byte [esp + 0x200], 7
call dword [0x6105a0]
push str.CacheFile
lea ecx, [esp + 0x5c]
call dword [0x610498]
lea ecx, [esp + 0x18c]
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x204], 0x10
call fcn.004e2140
mov esi, eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x20], esi
mov byte [esp + 0x200], 7
call dword [0x6105a0]
cmp esi, ebx
je 0x4917cb
lea ecx, [ecx]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49146a
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x49146a
mov edi, ebx
lea esi, [esp + 0x48]
call fcn.005e3070
mov ecx, eax
lea esi, [esp + 0xe4]
call fcn.004e29e0
mov ebp, eax
lea esi, [esp + 0x28]
mov byte [esp + 0x200], 0x11
call fcn.005e3070
mov ecx, eax
lea esi, [esp + 0xac]
call fcn.004e29e0
mov ecx, 0x10
mov byte [esp + 0x200], 0x12
cmp dword [ebp + 0x18], ecx
jb 0x49175e
mov ebp, dword [ebp + 4]
jmp 0x491761
add ebp, 4
cmp dword [eax + 0x18], ecx
jb 0x49176b
mov eax, dword [eax + 4]
jmp 0x49176e
add eax, 4
mov ecx, dword [esp + 0x20]
add ecx, 0x2c
call fcn.005259e0
test eax, eax
je 0x491799
mov ecx, ebp
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x491783
sub ecx, esi
push ebp
lea edi, [eax + 0x18]
mov esi, ecx
call fcn.00528390
lea ecx, [esp + 0xac]
mov byte [esp + 0x200], 0x11
call dword [0x610510]
lea ecx, [esp + 0xe4]
mov byte [esp + 0x200], 7
call dword [0x610510]
add ebx, 1
jmp 0x4916e0
lea ecx, [esp + 0x154]
mov byte [esp + 0x200], 6
call dword [0x6105a0]
mov eax, dword [esp + 0x120]
mov esi, 8
cmp dword [esp + 0x134], esi
jae 0x4917fc
lea eax, [esp + 0x120]
push eax
call dword [0x6101d0]
mov ecx, dword [esp + 0x120]
and eax, 0xfffffffe
cmp dword [esp + 0x134], esi
jae 0x49181d
lea ecx, [esp + 0x120]
push eax
push ecx
call dword [0x6101c8]
cmp dword [esp + 0x134], esi
mov eax, dword [esp + 0x120]
jae 0x49183c
lea eax, [esp + 0x120]
push eax
call dword [0x610200]
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x204], 5
call fcn.00404430
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x204], 4
call fcn.00404430
lea edx, [esp + 0x18c]
push edx
mov byte [esp + 0x204], 3
call fcn.004e1b60
lea ecx, [esp + 0x11c]
mov byte [esp + 0x200], 2
call dword [0x6105a0]
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x204], 1
call fcn.00404430
lea ecx, [esp + 0x170]
mov byte [esp + 0x200], 0
call dword [0x6105a0]
lea ecx, [esp + 0x138]
mov dword [esp + 0x200], 0xffffffff
call dword [0x6105a0]
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.005e693f
add esp, 0x1f0
ret