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

Disassembly:
push 0xffffffffffffffff
push 0x4e5d5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
push ebp
push esi
mov dword [esp + 0x54], ecx
push edi
mov edi, dword [0x518b48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x90]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x90]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
xor ebp, ebp
rep movsb byte es:[edi], byte [esi]
mov edi, str.VConfig.cfg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x34], ebp
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov al, byte [esp + 0x17]
and ecx, 3
mov byte [esp + 0x30], al
rep movsb byte es:[edi], byte [esi]
mov edi, str.http:__
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x38], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], ebp
push ecx
push str.http:__
lea ecx, [esp + 0x38]
call fcn.00406db0
mov esi, dword [0x518af0]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x19c], ebp
not ecx
dec ecx
mov ebx, ecx
mov ecx, dword [0x4ea898]
sub ecx, edx
cmp ecx, ebx
ja 0x494852
call fcn.004c0b21
cmp ebx, ebp
jbe 0x494896
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x34]
lea ebp, [edx + ebx]
push ebp
call fcn.004085a0
test al, al
je 0x494894
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
lea edi, [ecx + eax]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
mov byte [eax + ebp], 0
xor ebp, ebp
mov edi, str.__Client__VConfig.cfg
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x38]
repne scasb al, byte es:[edi]
mov eax, dword [0x4ea898]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4948bb
call fcn.004c0b21
cmp esi, ebp
jbe 0x494903
mov ecx, dword [esp + 0x38]
push ebp
lea ebx, [ecx + esi]
lea ecx, [esp + 0x34]
push ebx
call fcn.004085a0
test al, al
je 0x494903
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, esi
mov esi, str.__Client__VConfig.cfg
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor ebp, ebp
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebx
mov byte [eax + ebx], 0
mov cl, byte [esp + 0x17]
sub esp, 0x10
mov ebx, esp
lea edi, [esp + 0xa0]
xor eax, eax
mov dword [esp + 0x50], esp
mov byte [ebx], cl
or ecx, 0xffffffff
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ebp
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.004085a0
test al, al
je 0x49495e
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00408580
sub esp, 0x10
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
mov byte [esp + 0x1c0], 1
call fcn.0043a820
mov byte [esp + 0x1bc], 0
call fcn.00415140
add esp, 0x20
lea ecx, [esp + 0x7c]
call fcn.004d9d0c
push 0
lea ecx, [esp + 0x94]
push 0
push ecx
lea ecx, [esp + 0x88]
mov byte [esp + 0x1a8], 2
call fcn.004d9d81
test eax, eax
je 0x495207
mov edx, dword [0x51347c]
mov dword [esp + 0x10], edx
mov byte [esp + 0x19c], 3
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push eax
call fcn.004d9f64
mov ecx, dword [esp + 0x10]
push 0x518908
push ecx
call fcn.004aebf6
add esp, 8
test eax, eax
je 0x4951ed
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004d4702
lea eax, [esp + 0x60]
push eax
call fcn.00415b20
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a0], 4
call fcn.004d4ac6
lea ecx, [esp + 0x5c]
mov byte [esp + 0x19c], 3
call fcn.004d498d
lea ecx, [esp + 0x10]
call fcn.004d3a88
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4949cc
mov eax, dword [0x51347c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push str.AppName
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a0], 5
call fcn.004d369c
push 0x512200
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004d369c
test esi, esi
mov edx, eax
jl 0x494b33
test edx, edx
jl 0x494aec
mov edi, str.AppName
or ecx, 0xffffffff
xor eax, eax
sub edx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.AppName
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, esi
lea edx, [esp + 0x54]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004d34f0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1a0], 6
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x50]
jmp 0x494b2e
cmp edx, 0xffffffff
jne 0x494b33
mov edi, str.AppName
or ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x60]
add ecx, esi
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004d34cd
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1a0], 7
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x60]
call fcn.004d498d
push str.StoreMode
lea ecx, [esp + 0x14]
call fcn.004d369c
mov esi, eax
mov edi, str.StoreMode
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push 0x512200
lea ecx, [esp + 0x18]
call fcn.004d36aa
test esi, esi
mov edx, eax
jl 0x494c0a
test edx, edx
jl 0x494bc3
mov edi, str.StoreMode
or ecx, 0xffffffff
xor eax, eax
sub edx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.StoreMode
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, esi
push ecx
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d34f0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a0], 8
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x68]
jmp 0x494c05
cmp edx, 0xffffffff
jne 0x494c0a
mov edi, str.StoreMode
or ecx, edx
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004d34cd
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a0], 9
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x74]
call fcn.004d498d
push str.ProcessName
lea ecx, [esp + 0x14]
call fcn.004d369c
mov esi, eax
mov edi, str.ProcessName
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push 0x512200
lea ecx, [esp + 0x18]
call fcn.004d36aa
test esi, esi
mov edx, eax
jl 0x494ce1
test edx, edx
jl 0x494c9a
mov edi, str.ProcessName
or ecx, 0xffffffff
xor eax, eax
sub edx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.ProcessName
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, esi
lea eax, [esp + 0x7c]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004d34f0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1a0], 0xa
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x78]
jmp 0x494cdc
cmp edx, 0xffffffff
jne 0x494ce1
mov edi, str.ProcessName
or ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x18]
call fcn.004d34cd
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1a0], 0xb
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x54]
call fcn.004d498d
mov edx, dword [esp + 0x1c]
push str.TempPath
push edx
call fcn.004b0b80
add esp, 8
test eax, eax
jne 0x494dd9
push str.Directory
lea ecx, [esp + 0x14]
call fcn.004d369c
mov esi, eax
mov edi, str.Directory
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push 0x512200
lea ecx, [esp + 0x18]
call fcn.004d36aa
test esi, esi
mov edx, eax
jl 0x494fa1
test edx, edx
jl 0x494d8e
mov edi, str.Directory
or ecx, 0xffffffff
xor eax, eax
sub edx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.Directory
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, esi
lea eax, [esp + 0x70]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004d34f0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a0], 0xc
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x6c]
jmp 0x494f9c
cmp edx, 0xffffffff
jne 0x494fa1
mov edi, str.Directory
or ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x18]
call fcn.004d34cd
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a0], 0xd
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x48]
jmp 0x494f9c
mov edx, dword [esp + 0x1c]
push 0x5121c4
push edx
call fcn.004b0b80
add esp, 8
test eax, eax
jne 0x494fa1
push str.URL
lea ecx, [esp + 0x14]
call fcn.004d369c
mov esi, eax
mov edi, str.URL
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push 0x512200
lea ecx, [esp + 0x18]
call fcn.004d36aa
test esi, esi
mov edx, eax
jl 0x494eca
test edx, edx
jl 0x494e83
mov edi, str.URL
or ecx, 0xffffffff
xor eax, eax
sub edx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.URL
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, esi
lea eax, [esp + 0x74]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004d34f0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a0], 0xe
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x70]
jmp 0x494ec5
cmp edx, 0xffffffff
jne 0x494eca
mov edi, str.URL
or ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x18]
call fcn.004d34cd
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a0], 0xf
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x64]
call fcn.004d498d
push str.Element
lea ecx, [esp + 0x14]
call fcn.004d369c
mov esi, eax
mov edi, str.Element
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push 0x512200
lea ecx, [esp + 0x18]
call fcn.004d36aa
test esi, esi
mov edx, eax
jl 0x494fa1
test edx, edx
jl 0x494f5a
mov edi, str.Element
or ecx, 0xffffffff
xor eax, eax
sub edx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.Element
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, esi
lea edx, [esp + 0x50]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004d34f0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1a0], 0x10
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x4c]
jmp 0x494f9c
cmp edx, 0xffffffff
jne 0x494fa1
mov edi, str.Element
or ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x44]
add ecx, esi
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004d34cd
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1a0], 0x11
call fcn.004d4ac6
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x44]
call fcn.004d498d
lea ecx, [esp + 0x20]
call fcn.004d4e8f
lea ecx, [esp + 0x2c]
call fcn.004d4e8f
lea ecx, [esp + 0x1c]
call fcn.004d4e8f
lea ecx, [esp + 0x24]
call fcn.004d4e8f
lea ecx, [esp + 0x18]
call fcn.004d4e8f
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x495182
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
jle 0x495182
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lea esi, [eax + 4]
sub edx, ecx
mov eax, 0x2aaaaaab
mov edi, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4950e9
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x49503a
mov edx, ecx
mov eax, 0x2aaaaaab
sub edx, ebx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov ebp, edx
ja 0x49503f
mov ebp, 1
test ebx, ebx
jne 0x495047
xor edx, edx
jmp 0x49505a
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ebx, [edx + ebp]
test ebx, ebx
mov eax, ebx
jge 0x495065
xor eax, eax
lea edx, [eax + eax*2]
shl edx, 3
push edx
call fcn.004d46ce
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.00497320
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.00497360
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 8]
add edx, 0x18
mov ecx, esi
push edx
push eax
push edi
call fcn.00497320
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00496b20
mov eax, dword [esi + 4]
push eax
call fcn.004d46f7
lea eax, [ebx + ebx*2]
add esp, 4
lea ecx, [ebp + eax*8]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.00496af0
inc eax
mov dword [esi + 4], ebp
lea edx, [eax + eax*2]
lea eax, [ebp + edx*8]
mov dword [esi + 8], eax
jmp 0x495182
mov edx, ecx
mov eax, 0x2aaaaaab
sub edx, edi
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x495151
lea edx, [edi + 0x18]
push edx
push ecx
push edi
mov ecx, esi
call fcn.00497320
mov ebx, dword [esi + 8]
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, esi
sub eax, edx
push eax
push ebx
call fcn.00497360
mov edx, dword [esi + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
push edi
call fcn.004976b0
add esp, 0xc
jmp 0x49517e
push ecx
push ecx
add ecx, 0xffffffe8
push ecx
mov ecx, esi
call fcn.00497320
mov eax, dword [esi + 8]
push eax
add eax, 0xffffffe8
push eax
push edi
call fcn.00497720
lea eax, [esp + 0x24]
lea ecx, [edi + 0x18]
push eax
push ecx
push edi
call fcn.004976b0
add esp, 0x18
add dword [esi + 8], 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x19c], 0x16
call fcn.004d498d
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 0x15
call fcn.004d498d
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 0x14
call fcn.004d498d
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 0x13
call fcn.004d498d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x19c], 0x12
call fcn.004d498d
lea ecx, [esp + 0x18]
mov byte [esp + 0x19c], 3
call fcn.004d498d
jmp 0x4949cc
lea ecx, [esp + 0x7c]
call fcn.004da0b1
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 2
call fcn.004d498d
lea ecx, [esp + 0x7c]
mov byte [esp + 0x19c], 0
call fcn.004d9d3e
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x49523c
mov al, byte [ecx - 1]
test al, al
je 0x495232
cmp al, 0xff
je 0x495232
dec al
mov byte [ecx - 1], al
jmp 0x49523c
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x190
ret