Function at 0x416211
Capabilities:
Get common file path
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x698]
sub esp, 0x698
push 0xffffffffffffffff
push 0x414ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp + 0x694], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp + 4], edi
mov ecx, dword [ebp + 0x6a4]
xor edx, edx
mov ebx, dword [ebp + 0x6a8]
mov eax, dword [ebp + 0x6a0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x6ac]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov dword [ebp + 0x38], edx
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], 7
mov word [ebp + 0x38], cx
mov dword [ebp + 0x68], edx
mov dword [ebp - 4], edx
mov dword [ebp + 0x78], edx
mov dword [ebp + 0x7c], 7
mov word [ebp + 0x68], cx
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x84]
push ecx
lea ecx, [ebp]
push ecx
push eax
call fcn.00401dc5
add esp, 0x14
test al, al
je 0x416624
push dword [ebp]
xor esi, esi
inc esi
call fcn.004019b9
pop ecx
test al, al
je 0x4162df
mov ecx, edi
call fcn.00415e3e
xor ecx, ecx
test al, al
cmove esi, ecx
push esi
push dword [ebp + 0x84]
xor eax, eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea eax, [ebp + 0x38]
push eax
call fcn.00403940
mov ecx, edi
call fcn.00401937
mov ecx, dword [ebp + 4]
mov esi, 0x1000
push 8
pop edi
cmp byte [ecx + 0x18], 0
je 0x416583
xor eax, eax
mov ecx, 0x4883000
cmp dword [ebp], 1
push ebx
cmove eax, ecx
mov dword [ebp + 0x84], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00415dfb
cmp dword [ebp + 0x7c], edi
pop ecx
pop ecx
lea ecx, [ebp + 0x68]
cmovae ecx, dword [ebp + 0x68]
cmp dword [eax + 0x14], edi
jb 0x41634b
mov eax, dword [eax]
xor edx, edx
push edx
push dword [ebp + 0x84]
push edx
push edx
push str.HTTP_1.0
push ecx
push eax
mov eax, dword [ebp + 4]
push dword [eax + 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
lea ecx, [ebp - 0x30]
mov ebx, eax
call fcn.00403173
test ebx, ebx
je 0x416579
xor eax, eax
inc eax
cmp dword [ebp], eax
jne 0x4163ba
mov dword [ebp - 4], eax
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp]
mov dword [ebp + 0x84], 4
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp], 0x100
lea eax, [ebp]
push 4
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x10]
cmp eax, 1
jne 0x41646a
and dword [ebp + 0x50], 0
lea ecx, [ebp + 0x50]
and dword [ebp + 0x60], 0
xor eax, eax
push str.Content_Type:_application_x_www_form_urlencoded
mov dword [ebp + 0x64], 7
mov word [ebp + 0x50], ax
call fcn.004034c8
push dword [ebp - 0x14]
lea eax, [ebp + 8]
mov byte [ebp - 4], 6
push eax
call fcn.00402aa5
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 0x50]
pop ecx
pop ecx
push dword [ebp + 0x18]
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
cmp dword [ebp + 0x64], edi
push ecx
push dword [ebp + 0x60]
cmovae eax, dword [ebp + 0x50]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
lea ecx, [ebp + 8]
call fcn.0040314d
mov eax, dword [ebp + 0x64]
cmp eax, edi
jb 0x416479
mov ecx, dword [ebp + 0x50]
lea eax, [eax*2 + 2]
mov dword [ebp], eax
mov dword [ebp + 0x84], ecx
cmp eax, esi
jb 0x41645f
lea eax, [ebp]
push eax
lea eax, [ebp + 0x84]
push eax
call fcn.00403094
mov eax, dword [ebp]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x84]
push eax
push ecx
call fcn.00403de7
pop ecx
pop ecx
jmp 0x416479
test eax, eax
jne 0x416479
push eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push 0x208
lea eax, [ebp + 0x88]
push 0
push eax
call fcn.004055b0
add esp, 0xc
lea eax, [ebp + 0x88]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x30], eax
mov byte [ebp + 0x20], al
mov byte [ebp - 4], 7
mov dword [ebp + 0x80], eax
jmp 0x4164fe
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x41651c
cmp eax, 0x401
jae 0x4166e8
lea ecx, [ebp + 0x290]
mov byte [ebp + eax + 0x290], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4164e5
sub ecx, edx
lea eax, [ebp + 0x290]
push ecx
push eax
lea ecx, [ebp + 0x20]
call fcn.00403a1d
lea eax, [ebp + 0x80]
push eax
push 0x400
lea eax, [ebp + 0x290]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4164bf
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004167b7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.004038bd
lea ecx, [ebp + 8]
call fcn.00403173
mov eax, dword [ebp + 0x34]
cmp eax, 0x10
jb 0x416579
mov ecx, dword [ebp + 0x20]
inc eax
mov dword [ebp + 0x84], eax
mov dword [ebp], ecx
cmp eax, esi
jb 0x416570
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp]
push eax
call fcn.00403094
mov eax, dword [ebp + 0x84]
pop ecx
pop ecx
mov ecx, dword [ebp]
push eax
push ecx
call fcn.00403de7
pop ecx
pop ecx
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 4]
call fcn.00401996
mov eax, dword [ebp + 0x7c]
cmp eax, edi
jb 0x4165ca
mov ecx, dword [ebp + 0x68]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x84], eax
mov dword [ebp + 4], ecx
cmp eax, esi
jb 0x4165c1
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp + 4]
push eax
call fcn.00403094
mov eax, dword [ebp + 0x84]
pop ecx
pop ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.00403de7
pop ecx
pop ecx
and dword [ebp + 0x78], 0
xor eax, eax
mov word [ebp + 0x68], ax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x7c], 7
cmp eax, edi
jb 0x41661d
mov ecx, dword [ebp + 0x38]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x84], eax
mov dword [ebp + 4], ecx
cmp eax, esi
jb 0x416614
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp + 4]
push eax
call fcn.00403094
mov eax, dword [ebp + 0x84]
pop ecx
pop ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.00403de7
pop ecx
pop ecx
mov al, 1
jmp 0x4166c3
mov eax, dword [ebp + 0x7c]
mov esi, 0x1000
push 8
pop edi
cmp eax, edi
jb 0x41666e
mov ecx, dword [ebp + 0x68]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x84], eax
mov dword [ebp + 4], ecx
cmp eax, esi
jb 0x416665
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp + 4]
push eax
call fcn.00403094
mov eax, dword [ebp + 0x84]
pop ecx
pop ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.00403de7
pop ecx
pop ecx
and dword [ebp + 0x78], 0
xor eax, eax
mov word [ebp + 0x68], ax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x7c], 7
cmp eax, edi
jb 0x4166c1
mov ecx, dword [ebp + 0x38]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x84], eax
mov dword [ebp + 4], ecx
cmp eax, esi
jb 0x4166b8
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp + 4]
push eax
call fcn.00403094
mov eax, dword [ebp + 0x84]
pop ecx
pop ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.00403de7
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x694]
xor ecx, ebp
call fcn.00403df5
add ebp, 0x698
leave
ret 0x10
call fcn.0040400b
int3