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

Disassembly:
push 0xffffffffffffffff
push 0x4e5bcd
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 [0x518b28]
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.00406da0
mov esi, dword [0x518ad0]
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 0x4946f2
call fcn.004c09c1
cmp ebx, ebp
jbe 0x494736
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x34]
lea ebp, [edx + ebx]
push ebp
call fcn.00408590
test al, al
je 0x494734
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 0x49475b
call fcn.004c09c1
cmp esi, ebp
jbe 0x4947a3
mov ecx, dword [esp + 0x38]
push ebp
lea ebx, [ecx + esi]
lea ecx, [esp + 0x34]
push ebx
call fcn.00408590
test al, al
je 0x4947a3
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.00408590
test al, al
je 0x4947fe
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.00408570
sub esp, 0x10
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
mov byte [esp + 0x1c0], 1
call fcn.0043a900
mov byte [esp + 0x1bc], 0
call fcn.00415110
add esp, 0x20
lea ecx, [esp + 0x7c]
call fcn.004d9bac
push 0
lea ecx, [esp + 0x94]
push 0
push ecx
lea ecx, [esp + 0x88]
mov byte [esp + 0x1a8], 2
call fcn.004d9c21
test eax, eax
je 0x4950a7
mov edx, dword [0x513458]
mov dword [esp + 0x10], edx
mov byte [esp + 0x19c], 3
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push eax
call fcn.004d9e04
mov ecx, dword [esp + 0x10]
push 0x5188e8
push ecx
call fcn.004aea96
add esp, 8
test eax, eax
je 0x49508d
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004d45a2
lea eax, [esp + 0x60]
push eax
call fcn.00415af0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a0], 4
call fcn.004d4966
lea ecx, [esp + 0x5c]
mov byte [esp + 0x19c], 3
call fcn.004d482d
lea ecx, [esp + 0x10]
call fcn.004d3928
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x49486c
mov eax, dword [0x513458]
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.004d353c
push 0x5121dc
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004d353c
test esi, esi
mov edx, eax
jl 0x4949d3
test edx, edx
jl 0x49498c
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.004d3390
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1a0], 6
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x50]
jmp 0x4949ce
cmp edx, 0xffffffff
jne 0x4949d3
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.004d336d
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1a0], 7
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x60]
call fcn.004d482d
push str.StoreMode
lea ecx, [esp + 0x14]
call fcn.004d353c
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 0x5121dc
lea ecx, [esp + 0x18]
call fcn.004d354a
test esi, esi
mov edx, eax
jl 0x494aaa
test edx, edx
jl 0x494a63
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.004d3390
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a0], 8
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x68]
jmp 0x494aa5
cmp edx, 0xffffffff
jne 0x494aaa
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.004d336d
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a0], 9
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x74]
call fcn.004d482d
push str.ProcessName
lea ecx, [esp + 0x14]
call fcn.004d353c
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 0x5121dc
lea ecx, [esp + 0x18]
call fcn.004d354a
test esi, esi
mov edx, eax
jl 0x494b81
test edx, edx
jl 0x494b3a
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.004d3390
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1a0], 0xa
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x78]
jmp 0x494b7c
cmp edx, 0xffffffff
jne 0x494b81
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.004d336d
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1a0], 0xb
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x54]
call fcn.004d482d
mov edx, dword [esp + 0x1c]
push str.TempPath
push edx
call fcn.004b0a20
add esp, 8
test eax, eax
jne 0x494c79
push str.Directory
lea ecx, [esp + 0x14]
call fcn.004d353c
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 0x5121dc
lea ecx, [esp + 0x18]
call fcn.004d354a
test esi, esi
mov edx, eax
jl 0x494e41
test edx, edx
jl 0x494c2e
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.004d3390
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a0], 0xc
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x6c]
jmp 0x494e3c
cmp edx, 0xffffffff
jne 0x494e41
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.004d336d
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a0], 0xd
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x48]
jmp 0x494e3c
mov edx, dword [esp + 0x1c]
push 0x5121a0
push edx
call fcn.004b0a20
add esp, 8
test eax, eax
jne 0x494e41
push str.URL
lea ecx, [esp + 0x14]
call fcn.004d353c
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 0x5121dc
lea ecx, [esp + 0x18]
call fcn.004d354a
test esi, esi
mov edx, eax
jl 0x494d6a
test edx, edx
jl 0x494d23
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.004d3390
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a0], 0xe
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x70]
jmp 0x494d65
cmp edx, 0xffffffff
jne 0x494d6a
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.004d336d
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a0], 0xf
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x64]
call fcn.004d482d
push str.Element
lea ecx, [esp + 0x14]
call fcn.004d353c
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 0x5121dc
lea ecx, [esp + 0x18]
call fcn.004d354a
test esi, esi
mov edx, eax
jl 0x494e41
test edx, edx
jl 0x494dfa
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.004d3390
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1a0], 0x10
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x4c]
jmp 0x494e3c
cmp edx, 0xffffffff
jne 0x494e41
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.004d336d
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1a0], 0x11
call fcn.004d4966
mov byte [esp + 0x19c], 5
lea ecx, [esp + 0x44]
call fcn.004d482d
lea ecx, [esp + 0x20]
call fcn.004d4d2f
lea ecx, [esp + 0x2c]
call fcn.004d4d2f
lea ecx, [esp + 0x1c]
call fcn.004d4d2f
lea ecx, [esp + 0x24]
call fcn.004d4d2f
lea ecx, [esp + 0x18]
call fcn.004d4d2f
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x495022
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
jle 0x495022
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 0x494f89
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x494eda
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 0x494edf
mov ebp, 1
test ebx, ebx
jne 0x494ee7
xor edx, edx
jmp 0x494efa
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 0x494f05
xor eax, eax
lea edx, [eax + eax*2]
shl edx, 3
push edx
call fcn.004d456e
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.004971c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.00497200
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 8]
add edx, 0x18
mov ecx, esi
push edx
push eax
push edi
call fcn.004971c0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.004969c0
mov eax, dword [esi + 4]
push eax
call fcn.004d4597
lea eax, [ebx + ebx*2]
add esp, 4
lea ecx, [ebp + eax*8]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.00496990
inc eax
mov dword [esi + 4], ebp
lea edx, [eax + eax*2]
lea eax, [ebp + edx*8]
mov dword [esi + 8], eax
jmp 0x495022
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 0x494ff1
lea edx, [edi + 0x18]
push edx
push ecx
push edi
mov ecx, esi
call fcn.004971c0
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.00497200
mov edx, dword [esi + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
push edi
call fcn.00497550
add esp, 0xc
jmp 0x49501e
push ecx
push ecx
add ecx, 0xffffffe8
push ecx
mov ecx, esi
call fcn.004971c0
mov eax, dword [esi + 8]
push eax
add eax, 0xffffffe8
push eax
push edi
call fcn.004975c0
lea eax, [esp + 0x24]
lea ecx, [edi + 0x18]
push eax
push ecx
push edi
call fcn.00497550
add esp, 0x18
add dword [esi + 8], 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x19c], 0x16
call fcn.004d482d
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 0x15
call fcn.004d482d
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 0x14
call fcn.004d482d
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 0x13
call fcn.004d482d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x19c], 0x12
call fcn.004d482d
lea ecx, [esp + 0x18]
mov byte [esp + 0x19c], 3
call fcn.004d482d
jmp 0x49486c
lea ecx, [esp + 0x7c]
call fcn.004d9f51
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 2
call fcn.004d482d
lea ecx, [esp + 0x7c]
mov byte [esp + 0x19c], 0
call fcn.004d9bde
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4950dc
mov al, byte [ecx - 1]
test al, al
je 0x4950d2
cmp al, 0xff
je 0x4950d2
dec al
mov byte [ecx - 1], al
jmp 0x4950dc
dec ecx
push ecx
call fcn.004d4597
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