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

Disassembly:
push 0xffffffffffffffff
push 0x46e0c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x6c], al
call fcn.00401a10
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
mov dword [esp + 0x284], 0
call fcn.00401a10
push 0x47e798
push str.._scriptsprodInfo.dat
mov byte [esp + 0x288], 1
call fcn.0045d95a
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x14], esi
jne 0x45ade3
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x284], al
call fcn.00401a10
push 1
lea ecx, [esp + 0x6c]
mov dword [esp + 0x284], 0xffffffff
call fcn.00401a10
jmp 0x45b731
push esi
lea edx, [esp + 0x7c]
push 0x200
push edx
call fcn.0045dfbb
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
je 0x45af68
xor esi, esi
test ebx, ebx
jle 0x45af2c
cmp byte [esp + esi + 0x78], 0x2c
je 0x45ae2a
inc esi
cmp esi, ebx
jl 0x45ae19
jmp 0x45af2c
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + esi + 0x78], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x78]
push ecx
push eax
lea ecx, [esp + 0x70]
call fcn.00401a60
mov edi, 0x47f834
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x47f834
lea ecx, [esp + 0x20]
call fcn.00401a60
mov al, byte [esp + ebx + 0x77]
lea edi, [esp + ebx + 0x77]
cmp al, 0xa
lea ecx, [esp + 0x18]
jne 0x45ae9d
call fcn.00432400
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x45ae8f
lea edx, [esp + esi + 0x79]
push edi
push edx
jmp 0x45aeba
mov ecx, dword [esp + 0x20]
lea edx, [esp + esi + 0x79]
push edi
add eax, ecx
push edx
jmp 0x45aeba
call fcn.00432400
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45aeb0
mov ecx, dword [esp + 0x20]
add eax, ecx
lea edx, [esp + ebx + 0x78]
lea ecx, [esp + esi + 0x79]
push edx
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0045bbe0
push eax
lea ecx, [esp + 0x28]
call fcn.0045b9e0
lea edx, [esp + 0x68]
lea ecx, [esp + 0x28]
push edx
call fcn.004023f0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
push eax
mov byte [esp + 0x284], 2
call fcn.004023f0
mov eax, dword [ebp + 0x80]
lea ecx, [ebp + 0x78]
lea edx, [esp + 0x28]
mov byte [esp + 0x280], 3
push edx
push eax
call fcn.0045bc70
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x284], 1
call fcn.00401a10
push 1
lea ecx, [esp + 0x2c]
call fcn.00401a10
mov eax, dword [esp + 0x14]
test byte [eax + 0xc], 0x10
jne 0x45af64
mov ecx, eax
lea edx, [esp + 0x78]
push ecx
push 0x200
push edx
call fcn.0045dfbb
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
jne 0x45ae0f
mov esi, dword [esp + 0x14]
push esi
call fcn.0045d7fc
mov al, byte [esp + 0x17]
sub esp, 0xc
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00401a10
mov edi, str.buildVersion
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.buildVersion
mov ecx, esi
call fcn.00401a60
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.0045abe0
mov edx, dword [0x46f234]
lea ecx, [ebp + 0x68]
push edx
push 0
push eax
mov byte [esp + 0x28c], 4
call fcn.00402510
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x284], 1
call fcn.00401a10
mov al, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00401a10
mov edi, str.contentName
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.contentName
mov ecx, esi
call fcn.00401a60
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.0045abe0
mov edx, dword [0x46f234]
lea ecx, [ebp + 0x48]
push edx
push 0
push eax
mov byte [esp + 0x28c], 5
call fcn.00402510
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x284], 1
call fcn.00401a10
mov al, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00401a10
or ecx, 0xffffffff
mov edi, str.dpName
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.dpName
mov ecx, esi
call fcn.00401a60
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.0045abe0
mov edx, dword [0x46f234]
lea ecx, [ebp + 0x58]
push edx
push 0
push eax
mov byte [esp + 0x28c], 6
call fcn.00402510
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x284], 1
call fcn.00401a10
mov al, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00401a10
mov edi, str.productID
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.productID
mov ecx, esi
call fcn.00401a60
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.0045abe0
mov edx, dword [0x46f234]
lea ecx, [ebp + 0x18]
push edx
push 0
push eax
mov byte [esp + 0x28c], 7
call fcn.00402510
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x284], 1
call fcn.00401a10
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call fcn.00401a10
mov edi, str.contentID
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
call fcn.00401c40
test al, al
je 0x45b17f
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, str.contentID
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00401c20
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.0045abe0
mov edx, dword [0x46f234]
lea ecx, [ebp + 0x28]
push edx
push 0
push eax
mov byte [esp + 0x28c], 8
call fcn.00402510
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x284], 1
call fcn.00401a10
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call fcn.00401a10
mov edi, str.dpID
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
call fcn.00401c40
test al, al
je 0x45b215
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, str.dpID
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00401c20
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.0045abe0
mov edx, dword [0x46f234]
lea ecx, [ebp + 0x38]
push edx
push 0
push eax
mov byte [esp + 0x28c], 9
call fcn.00402510
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x284], 1
call fcn.00401a10
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call fcn.00401a10
mov edi, str.buyURL
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
call fcn.00401c40
test al, al
je 0x45b2ab
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, str.buyURL
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00401c20
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.0045abe0
mov edx, dword [0x46f234]
lea ecx, [ebp + 8]
push edx
push 0
push eax
mov byte [esp + 0x28c], 0xa
call fcn.00402510
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x284], 1
call fcn.00401a10
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call fcn.00401a10
mov edi, str.guid
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
call fcn.00401c40
test al, al
je 0x45b341
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, str.guid
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00401c20
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.0045abe0
mov edx, dword [0x46f234]
lea ecx, [ebp + 0x98]
push edx
push 0
push eax
mov byte [esp + 0x28c], 0xb
call fcn.00402510
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x284], 1
call fcn.00401a10
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call fcn.00401a10
mov edi, str.useLeaderboard
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
call fcn.00401c40
test al, al
je 0x45b3da
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, str.useLeaderboard
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00401c20
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
call fcn.0045abe0
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebx
mov byte [esp + 0x294], 0xc
mov byte [ebx], dl
call fcn.00401a10
mov edi, str.useLeaderboards
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
call fcn.00401c40
test al, al
je 0x45b44b
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, str.useLeaderboards
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
mov ecx, ebx
call fcn.00401c20
lea edx, [esp + 0x58]
mov ecx, ebp
push edx
call fcn.0045abe0
mov edi, 0x47e6ec
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x280], 0xd
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x60]
not ecx
dec ecx
push ecx
push 0x47e6ec
push eax
push 0
lea ecx, [esp + 0x68]
call fcn.004186c0
test eax, eax
je 0x45b4f5
mov edi, 0x47e6ec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x54]
push 0x47e6ec
push ecx
push eax
lea ecx, [esp + 0x58]
call fcn.004186c0
test eax, eax
je 0x45b4f5
mov edi, 0x47e76c
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x88]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x1c], esi
call fcn.00401c40
test al, al
je 0x45b540
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x47e76c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x45b538
mov edi, 0x47e6ec
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x88]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x1c], esi
call fcn.00401c40
test al, al
je 0x45b540
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x47e6ec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
mov ecx, ebx
call fcn.00401c20
mov ecx, ebp
call fcn.0045b8b0
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x24], esp
push 0
mov byte [ebx], cl
mov ecx, ebx
call fcn.00401a10
mov edi, str.codeBase
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
call fcn.00401c40
test al, al
je 0x45b5a4
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, str.codeBase
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00401c20
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.0045abe0
mov edx, dword [0x46f234]
lea ecx, [ebp + 0xa8]
push edx
push 0
push eax
mov byte [esp + 0x28c], 0xe
call fcn.00402510
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x284], 0xd
call fcn.00401a10
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call fcn.00401a10
mov edi, str.versionBase
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
call fcn.00401c40
test al, al
je 0x45b640
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, str.versionBase
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
add eax, ecx
mov byte [eax], 0
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
call fcn.0045abe0
mov ecx, dword [0x46f234]
xor esi, esi
push ecx
push esi
push eax
lea ecx, [ebp + 0xb8]
mov byte [esp + 0x28c], 0xf
call fcn.00402510
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x284], 0xd
call fcn.00401a10
mov ecx, dword [esp + 0x4c]
cmp ecx, esi
je 0x45b6a1
mov al, byte [ecx - 1]
test al, al
je 0x45b697
cmp al, 0xff
je 0x45b697
dec al
mov byte [ecx - 1], al
jmp 0x45b6a1
dec ecx
push ecx
call fcn.0045c5a9
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x4c], esi
cmp ecx, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
je 0x45b6d1
mov al, byte [ecx - 1]
test al, al
je 0x45b6c7
cmp al, 0xff
je 0x45b6c7
dec al
mov byte [ecx - 1], al
jmp 0x45b6d1
dec ecx
push ecx
call fcn.0045c5a9
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x5c], esi
cmp ecx, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
je 0x45b701
mov al, byte [ecx - 1]
test al, al
je 0x45b6f7
cmp al, 0xff
je 0x45b6f7
dec al
mov byte [ecx - 1], al
jmp 0x45b701
dec ecx
push ecx
call fcn.0045c5a9
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], esi
cmp ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x45b731
mov al, byte [ecx - 1]
test al, al
je 0x45b727
cmp al, 0xff
je 0x45b727
dec al
mov byte [ecx - 1], al
jmp 0x45b731
dec ecx
push ecx
call fcn.0045c5a9
add esp, 4
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x274
ret