Function at 0x40e620
Capabilities:
Check http status code
Check if file exists
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4381dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xeb8
mov eax, dword [0x449320]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xec4], eax
mov eax, dword [esi + 0x164]
xor edi, edi
push 0x43c358
lea ecx, [esi + 0xf4]
mov dword [esi + 0x170], edi
call fcn.0042dbcd
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.0040d8b0
push str.updateinfo.ini
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0xedc], edi
call fcn.00401c00
add esp, 0xc
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e6b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x20]
xor eax, eax
mov byte [esp + 0x8c], 0
mov ecx, 0x40
lea edi, [esp + 0x8d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
push 0x104
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x94]
push eax
push 0x439e40
push str.size
push 0x43c1b0
call edi
lea ecx, [esp + 0x8c]
push ecx
call fcn.0041c6dc
add esp, 4
push ebp
push 0x104
lea edx, [esp + 0x94]
push edx
push 0x439c83
push 0x43c33c
push 0x43c1b0
call edi
lea eax, [esp + 0x8c]
push eax
call fcn.0041c6dc
add esp, 4
lea ecx, [esp + 0x40]
mov ebx, eax
call fcn.0042ea96
cmp ebx, dword [esi + 0x160]
mov byte [esp + 0xed0], 3
push 0
jne 0x40e767
mov ecx, dword [esp + 0xedc]
mov eax, dword [ecx]
push 0x3041
jmp 0x40e775
mov edx, dword [esp + 0xedc]
mov eax, dword [edx]
push 0x1041
lea ecx, [esp + 0x48]
push eax
call fcn.0042ed2e
test eax, eax
lea ecx, [esp + 0x40]
jne 0x40e79c
mov byte [esp + 0xed0], 2
call fcn.0042ead5
lea eax, [ebp - 0x10]
jmp 0x40f272
call fcn.0042e98e
lea ecx, [esp + 0x190]
mov dword [esi + 0x15c], eax
call fcn.00401ff0
mov byte [esp + 0xed0], 4
call fcn.00429b49
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xed0], 5
call fcn.00429b49
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0xed4], 6
call fcn.00407200
push str.Users_
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0xee0], 7
call fcn.00401c00
mov eax, dword [eax]
add esp, 0x10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, eax
mov eax, dword [esp + 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e849
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40e8ff
push 0x439d84
push 0x439e2c
lea ecx, [esp + 0x18]
call fcn.00406e60
push 5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00407060
mov eax, dword [eax]
push str.temp_
push eax
call fcn.0041cd02
mov ebx, eax
mov eax, dword [esp + 0x20]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e8aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40e8ff
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffb
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405460
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xed4], 8
call fcn.00401b90
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e8ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, 0xf
push ebx
push str.UsersProxy.ini
lea ecx, [esp + 0x18]
call fcn.00405510
lea eax, [esp + 0x28]
push eax
call fcn.00407360
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 0xc]
test eax, eax
mov byte [esp + 0xed0], 9
je 0x40e982
push str.UsersProxy.ini
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00401c00
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xed4], 0xa
call fcn.00401b90
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e982
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
push 0x104
lea ecx, [esp + 0x94]
push ecx
push 0x439c83
push str.ConnectionType
push str.Proxy
call edi
call fcn.00429b49
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x40]
push 0x439e50
push ecx
mov byte [esp + 0xedc], 0xb
call fcn.004047d0
add esp, 0xc
push 0x439c83
lea ecx, [esp + 0x38]
call fcn.004057f0
push 0x439c83
lea ecx, [esp + 0x18]
mov byte [esp + 0xed4], 0xc
call fcn.004057f0
push 0x439c83
lea ecx, [esp + 0x30]
mov byte [esp + 0xed4], 0xd
call fcn.004057f0
push 0x439c83
lea ecx, [esp + 0x28]
mov byte [esp + 0xed4], 0xe
call fcn.004057f0
mov ebp, dword [esp + 0x3c]
push str.SOCKS5
push ebp
mov byte [esp + 0xed8], bl
call fcn.0041cd02
add esp, 8
test eax, eax
jne 0x40eb58
mov edx, dword [esp + 0x10]
push edx
push 0x104
lea eax, [esp + 0x94]
push eax
push 0x439c83
push str.Address
push str.Proxy
call edi
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x38]
push 0x439e50
push edx
call fcn.004047d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0x104
lea ecx, [esp + 0x94]
push ecx
push 0x439c83
push str.Port
push str.Proxy
call edi
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x18]
push 0x439e50
push eax
call fcn.004047d0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add esp, 0xc
test eax, eax
jne 0x40eade
push str.1080
lea ecx, [esp + 0x18]
call fcn.00403210
mov edx, dword [esp + 0x10]
push edx
push 0x104
lea eax, [esp + 0x94]
push eax
push 0x439c83
push str.Account
push str.Proxy
call edi
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x30]
push 0x439e50
push edx
call fcn.004047d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0x104
lea ecx, [esp + 0x94]
push ecx
push 0x439c83
push 0x43c2dc
push str.Proxy
call edi
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x28]
push 0x439e50
push eax
call fcn.004047d0
add esp, 0xc
mov eax, dword [esi + 0x144]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x68]
push edx
push eax
call fcn.00432cf1
mov eax, dword [esp + 0x5c]
mov ecx, dword [esi + 0x15c]
push eax
mov eax, dword [esp + 0x34]
push 0
push ecx
mov ecx, dword [esp + 0x28]
push 0
push 0
lea edx, [esp + 0x78]
push edx
push eax
push ecx
lea ecx, [esp + 0x1b0]
call fcn.004020d0
lea ecx, [esp + 0x190]
call fcn.00402070
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x54], esp
mov edi, esp
push eax
call fcn.004018a0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x60], esp
mov edi, esp
push eax
mov byte [esp + 0xedc], 0x10
call fcn.004018a0
add eax, 0x10
mov dword [edi], eax
mov edx, dword [esp + 0x20]
push edx
mov byte [esp + 0xee0], 0x11
call fcn.0041c654
add esp, 8
push eax
mov eax, dword [esp + 0x40]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push eax
call fcn.004018a0
add eax, 0x10
mov dword [edi], eax
movzx eax, word [esp + 0x68]
mov ecx, dword [esp + 0x30]
add esp, 4
push eax
push ecx
lea ecx, [esp + 0x1a8]
mov byte [esp + 0xee8], bl
call fcn.00403bd0
test eax, eax
jne 0x40ec5f
lea ecx, [esp + 0x40]
call fcn.0042ea34
mov ecx, dword [esp + 0xedc]
push 0x10
push 0x43c2c8
call fcn.00401a40
jmp 0x40f0f4
push 0
push 0
lea ecx, [esp + 0x198]
call fcn.004027d0
test eax, eax
jne 0x40ecae
lea ecx, [esp + 0x40]
call fcn.0042ea34
mov ecx, dword [esp + 0xedc]
push 0x43c2b0
call fcn.00403210
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40f110
push 0
push 0
lea ecx, [esp + 0x198]
call fcn.004025a0
lea ecx, [esp + 0x190]
call fcn.004026c0
cmp eax, 0xffffffff
je 0x40f0da
cmp eax, 0x190
jge 0x40f0da
push 0x1e
lea eax, [esp + 0x70]
push eax
push 0x43c2a0
lea ecx, [esp + 0x19c]
call fcn.00403250
lea ecx, [esp + 0x6c]
push ecx
call fcn.0041c6dc
mov ecx, dword [esi + 0x15c]
mov edi, eax
add esp, 4
add edi, ecx
lea ebx, [esi + 0x74]
push 1
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.0042dc47
mov eax, edi
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
push 0
mov ecx, ebx
call fcn.00407650
mov eax, dword [esi + 0x15c]
cdq
push 0
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.0042e834
lea ecx, [esp + 0x38]
call fcn.00401960
mov edx, dword [esi + 0x158]
push edx
lea eax, [esp + 0x3c]
push 0x439a04
push eax
mov byte [esp + 0xedc], 0x12
call fcn.004047d0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push ecx
push edx
push str.size
push 0x43c1b0
call ebp
mov eax, dword [esi + 0x160]
push eax
lea ecx, [esp + 0x3c]
push 0x439a04
push ecx
call fcn.004047d0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
add esp, 0xc
push edx
push eax
push 0x43c33c
push 0x43c1b0
call ebp
mov ecx, dword [esi + 0x1c]
push 0
push 0x1f4
push 0x2712
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x58], eax
cmp dword [esi + 0x15c], edi
jge 0x40eefa
lea ebx, [ebx]
push 0x400
lea edx, [esp + 0xac8]
push edx
lea ecx, [esp + 0x198]
call fcn.00402860
mov ebp, eax
test ebp, ebp
je 0x40efde
cmp ebp, 0xffffffff
je 0x40effa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push ebp
lea eax, [esp + 0xac8]
push eax
lea ecx, [esp + 0x48]
call fcn.0042e7e9
mov edx, dword [esi + 0x15c]
add edx, ebp
mov eax, edx
mov dword [esi + 0x15c], edx
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
mov ecx, ebx
call fcn.00407a60
mov edx, dword [esp + 0x58]
fild dword [esi + 0x15c]
sub edi, edx
test edi, edi
mov dword [esp + 0x68], edi
fild dword [esp + 0x68]
jge 0x40ee78
fadd qword [0x43c298]
fmul qword [0x43c290]
sub esp, 8
lea ecx, [esp + 0x58]
fdivp st(1)
fstp qword [esp]
push ecx
mov ecx, esi
call fcn.0040d550
lea edi, [esi + 0x17c]
push eax
mov ecx, edi
mov byte [esp + 0xed4], 0x14
call fcn.00401b90
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 0x12
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40eece
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 2
push 0x43c288
mov ecx, edi
call fcn.00405510
mov eax, dword [esi + 0x178]
test eax, eax
jne 0x40f04d
mov eax, dword [esp + 0x18]
cmp dword [esi + 0x15c], eax
jl 0x40edf0
lea ecx, [esp + 0x40]
call fcn.0042ea34
mov ecx, dword [esi + 0x1c]
push 0x2712
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
push 0x439c83
lea ecx, [esi + 0xf4]
call fcn.0042dbcd
push 0x439c83
push 0x3f1
mov ecx, esi
call fcn.0042daf4
mov ecx, eax
call fcn.0042dbcd
push 0
mov ecx, ebx
call fcn.0042dc47
push 0
mov ecx, ebx
call fcn.00407a60
lea ecx, [esp + 0x38]
call fcn.00401330
lea ecx, [esp + 0x24]
call fcn.00401330
lea ecx, [esp + 0x2c]
call fcn.00401330
lea ecx, [esp + 0x14]
call fcn.00401330
lea ecx, [esp + 0x34]
call fcn.00401330
lea ecx, [esp + 0x3c]
call fcn.00401330
lea ecx, [esp + 0x28]
call fcn.00401330
lea ecx, [esp + 0x10]
call fcn.00401330
lea ecx, [esp + 0x30]
call fcn.00401330
lea ecx, [esp + 0x1c]
call fcn.00401330
lea ecx, [esp + 0x190]
mov byte [esp + 0xed0], 3
call fcn.00402730
lea ecx, [esp + 0x40]
mov byte [esp + 0xed0], 2
call fcn.0042ead5
lea ecx, [esp + 0x20]
call fcn.00401330
mov eax, 1
jmp 0x40f296
lea ecx, [esp + 0x40]
call fcn.0042ea34
mov ecx, dword [esp + 0xedc]
push 0x43c270
call fcn.00403210
jmp 0x40f04d
lea ecx, [esp + 0x40]
call fcn.0042ea34
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x15c]
mov esi, dword [esp + 0xedc]
push ecx
push edx
push str._d__d
push esi
call fcn.004047d0
push esi
lea eax, [esp + 0x64]
push 0x43c258
push eax
call fcn.004047f0
add esp, 0x1c
push eax
mov ecx, esi
mov byte [esp + 0xed4], 0x13
call fcn.00401cc0
lea ecx, [esp + 0x50]
call fcn.00401330
lea ecx, [esp + 0x38]
call fcn.00401330
lea ecx, [esp + 0x24]
call fcn.00401330
lea ecx, [esp + 0x2c]
call fcn.00401330
lea ecx, [esp + 0x14]
call fcn.00401330
lea ecx, [esp + 0x34]
call fcn.00401330
lea ecx, [esp + 0x3c]
call fcn.00401330
lea ecx, [esp + 0x28]
call fcn.00401330
lea ecx, [esp + 0x10]
call fcn.00401330
lea ecx, [esp + 0x30]
call fcn.00401330
lea ecx, [esp + 0x1c]
call fcn.00401330
lea ecx, [esp + 0x190]
mov byte [esp + 0xed0], 3
call fcn.00402730
lea ecx, [esp + 0x40]
mov byte [esp + 0xed0], 2
call fcn.0042ead5
lea ecx, [esp + 0x20]
call fcn.00401330
jmp 0x40f294
lea ecx, [esp + 0x40]
call fcn.0042ea34
mov ecx, dword [esp + 0xedc]
push 0x43c244
call fcn.00403210
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 0xe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f11a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f140
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f166
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f18c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0xed0], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f220
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xed0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f246
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x190]
mov byte [esp + 0xed0], 3
call fcn.00402730
lea ecx, [esp + 0x40]
mov byte [esp + 0xed0], 2
call fcn.0042ead5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0xed0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f294
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0xec8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xec4]
call fcn.0041c22b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xec4
ret 8