Function at 0x585fd0
Capabilities:
Get geographical location
Make an http request with a cookie
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
lea ebp, [esp - 0x178]
sub esp, 0x178
push 0xffffffffffffffff
push 0x66324b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x174], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x90], esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [esi + 0x32c4], bl
mov ecx, dword [esi + 0xc8]
mov eax, dword [ecx + 0x390]
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x586040
sub eax, edi
cmp eax, 0xc
jbe 0x586054
mov byte [ebp - 0x21], 1
jmp 0x5860b9
cmp byte [ecx + 0x1ae], 0
jne 0x5860b9
cmp byte [ecx + 0x1af], 0
je 0x586081
mov ecx, dword [ecx + 0x2ec]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x586070
sub ecx, edx
je 0x5860b9
mov byte [ebp - 0x22], 1
jmp 0x5860b9
mov eax, dword [esi + 0x32cc]
cmp eax, ebx
je 0x586093
cmp dword [esi + 0x32d0], ebx
je 0x5860b9
push ebx
lea edx, [esi + 0x32c8]
push edx
lea edx, [esi + 0x32d0]
push edx
mov edx, dword [ecx + 0x10]
push edx
mov edx, dword [ecx + 0xc]
push edx
push eax
add ecx, 0x1e8
push ecx
mov ecx, esi
call fcn.00582ff0
mov edi, dword [ebp + 0x180]
push 1
cmp edi, ebx
je 0x5860cd
mov eax, dword [0x75ebac]
push eax
jmp 0x5860d4
mov ecx, dword [0x75ebb0]
push ecx
mov ecx, esi
call fcn.00562ad0
mov ecx, esi
call fcn.005813b0
mov ecx, esi
call fcn.005827c0
mov dword [ebp - 0x74], eax
cmp eax, ebx
jne 0x5872c7
lea ecx, [ebp - 0x40]
call fcn.004024f0
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xcc]
cmp eax, ebx
je 0x58611c
cmp byte [eax + 0x14], 0
mov eax, str.POST
jne 0x586149
mov eax, 0x6b187c
jmp 0x586149
cmp edi, ebx
je 0x586127
mov eax, str.HEAD
jmp 0x586149
mov eax, dword [esi + 0xc8]
cmp byte [eax + 0x195], 0
jne 0x586144
cmp byte [eax + 0x1a8], 0
mov eax, 0x6b187c
je 0x586149
mov eax, str.POST
push eax
lea ecx, [ebp - 0x40]
call fcn.0054f750
cmp byte [ebp - 0x22], 0
je 0x5863e0
mov byte [esi + 0x32c4], 1
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov byte [ebp - 4], 2
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x304]
push eax
push str._08X
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f60
mov eax, dword [esi + 0xc8]
inc dword [eax + 0x304]
mov byte [ebp + 0x144], 0
xor eax, eax
mov dword [ebp + 0x145], eax
mov dword [ebp + 0x149], eax
mov dword [ebp + 0x14d], eax
mov dword [ebp + 0x151], eax
mov dword [ebp + 0x155], eax
mov dword [ebp + 0x159], eax
mov dword [ebp + 0x15d], eax
mov dword [ebp + 0x161], eax
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 0x2f0]
mov edx, dword [eax + 0x2ec]
mov edi, dword [eax + 0x2f4]
mov ebx, dword [eax + 0x2f8]
mov dword [ebp - 0x34], ebx
lea ebx, [ebp + 0x60]
push ebx
push ecx
push edx
mov edx, dword [eax + 0x10]
push edx
push edi
mov eax, dword [eax + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0056a8a0
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 0x2fc]
mov edx, dword [eax + 0x2f0]
mov eax, dword [eax + 0x2ec]
lea edi, [ebp + 0x84]
push edi
lea edi, [ebp + 0x144]
push edi
mov edi, dword [esi + 0x3224]
push edi
mov edi, dword [ebp - 0x40]
push edi
push ecx
push edx
mov edx, dword [ebp - 0x18]
push edx
push eax
mov eax, ebx
push eax
call fcn.0056aa60
add esp, 0x4c
lea ecx, [ebp - 0x1c]
call fcn.004024f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.004024f0
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0xc8]
mov eax, dword [ecx + 0x2fc]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x586272
sub eax, edi
je 0x5862a0
mov edx, dword [ecx + 0x2f0]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ecx + 0x2fc]
push ecx
push str.qop_s__nc_s__cnonce__s__
lea edx, [ebp - 0x1c]
push edx
call fcn.00402f60
add esp, 0x14
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x300]
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5862b0
sub eax, edi
je 0x5862d3
mov eax, dword [edx + 0x300]
push eax
push str.__opaque__s_
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402f60
add esp, 0xc
mov edi, dword [ebp - 0x3c]
mov eax, edi
lea edx, [eax + 1]
jmp 0x5862e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5862e0
sub eax, edx
je 0x5862f0
mov ebx, dword [ebp - 0x20]
jmp 0x58630b
push 0x67997c
lea ecx, [ebp - 0x50]
call fcn.004030a0
mov byte [ebp - 4], 5
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov edi, dword [eax]
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x2fc]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x586320
sub eax, edx
je 0x586330
mov ecx, dword [ebp - 0x1c]
jmp 0x58634c
push 0x67997c
lea ecx, [ebp - 0x34]
call fcn.004030a0
mov dword [ebp - 4], 6
or ebx, 2
mov dword [ebp - 0x20], ebx
mov ecx, dword [eax]
mov eax, dword [esi + 0xc8]
push edi
lea edx, [ebp + 0x84]
push edx
push ecx
mov ecx, dword [esi + 0x3224]
push ecx
mov edx, dword [eax + 0x2ec]
push edx
mov ecx, dword [eax + 0x2f4]
push ecx
mov edx, dword [eax + 0xc]
push edx
push str.Authorization:_Digest_username__s___realm__s___nonce__s___uri__s____sresponse__s__s_r_n
lea eax, [esi + 0x32c8]
push eax
call fcn.00402f60
add esp, 0x24
mov dword [ebp - 4], 5
test bl, 2
je 0x5863a2
and ebx, 0xfffffffd
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x34]
call fcn.00402560
mov dword [ebp - 4], 4
test bl, 1
je 0x5863bc
and ebx, 0xfffffffe
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x50]
call fcn.00402560
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.00402560
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402560
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov ebx, dword [esi + 0xc8]
cmp byte [ebx + 0x33d], cl
je 0x5863fa
mov dword [ebp - 0x60], 1
mov dword [esi + 0x32a0], ecx
mov dword [esi + 0x32a4], ecx
or eax, 0xffffffff
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
cmp dword [ebx + 0x334], 8
jne 0x586465
mov eax, dword [esi + 0xa8]
cmp eax, ecx
je 0x586465
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x54]
mov edi, ecx
or edi, edx
je 0x586465
add ecx, dword [eax + 0x48]
adc edx, dword [eax + 0x4c]
sub ecx, 1
sbb edx, 0
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], edx
mov ecx, edx
push ecx
mov edx, dword [esi + 0x68]
push edx
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [eax + 0x48]
push edx
push str.Range:_bytes_I64d__I64d_r_n
lea eax, [ebp + 0xa8]
push eax
call fcn.00623a6b
jmp 0x58680f
cmp byte [esi + 0x320f], 0
je 0x586487
push str.Range:_bytes0__r_n
lea ecx, [ebp + 0xa8]
push ecx
call fcn.00623a6b
add esp, 8
jmp 0x586812
mov edi, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
test edx, edx
jg 0x586602
jl 0x58649f
test edi, edi
ja 0x586602
mov eax, dword [ebx + 0x32c]
cmp eax, 0x40
je 0x5864b1
cmp eax, 0x80
jne 0x58650e
mov eax, dword [esi + 0x3208]
test eax, eax
je 0x58650e
cmp byte [eax + 0x25a], 0
je 0x58650e
mov edx, dword [eax + 0x250]
mov dword [esi + 0x78], edx
mov ecx, dword [eax + 0x254]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], ecx
mov edx, dword [eax + 0x254]
push edx
mov ecx, dword [eax + 0x250]
push ecx
mov edx, dword [eax + 0x24c]
push edx
mov eax, dword [eax + 0x248]
push eax
push str.Range:_bytes_I64d__I64d_r_n
lea ecx, [ebp + 0xa8]
push ecx
call fcn.00623a6b
jmp 0x58680f
cmp byte [esi + 0xe2], 0
jne 0x5865e9
cmp byte [ebx + 0x1b1], 0
jne 0x5865e9
cmp byte [ebx + 0x190], 0
je 0x586588
cmp dword [ebx + 0x30c], 0
jl 0x586588
jg 0x586545
cmp dword [ebx + 0x308], 0
jbe 0x586588
mov edx, dword [ebx + 0x308]
mov dword [esi + 0x78], edx
mov eax, dword [ebx + 0x30c]
mov dword [esi + 0x7c], eax
mov ecx, edx
mov dword [esi + 0x68], ecx
mov edx, eax
mov dword [esi + 0x6c], edx
mov eax, dword [ebx + 0x30c]
push eax
mov ecx, dword [ebx + 0x308]
push ecx
push str.Range:_bytes0__I64d_r_n
lea edx, [ebp + 0xa8]
push edx
call fcn.00623a6b
add esp, 0x10
jmp 0x586812
mov eax, dword [esi + 0x3208]
test eax, eax
je 0x5865c9
cmp dword [eax + 0x44], 0
je 0x5865c9
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x7c]
test eax, eax
jl 0x5865c9
jg 0x5865a8
test ecx, ecx
jbe 0x5865c9
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], eax
push eax
push ecx
push str.Range:_bytes0__I64d_r_n
lea eax, [ebp + 0xa8]
push eax
call fcn.00623a6b
add esp, 0x10
jmp 0x586812
push 0x67997c
lea ecx, [ebp + 0xa8]
push ecx
call fcn.00623a6b
add esp, 8
mov byte [esi + 0x320c], 0
jmp 0x586812
push str.Range:_bytes0__r_n
lea edx, [ebp + 0xa8]
push edx
call fcn.00623a6b
add esp, 8
jmp 0x586812
cmp byte [ebx + 0x360], 0
je 0x58662c
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
push ecx
push eax
push edx
push edi
push str.Range:_bytes_I64d__I64d_r_n
lea eax, [ebp + 0xa8]
push eax
jmp 0x586803
mov eax, dword [esi + 0x3208]
test eax, eax
je 0x586641
mov ecx, dword [eax + 0xb0]
mov dword [ebp - 0x1c], ecx
jmp 0x586648
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x586651
mov eax, dword [eax + 0x44]
jmp 0x586653
xor eax, eax
mov ecx, dword [esi + 0x58]
or ecx, dword [esi + 0x5c]
je 0x58666e
cmp dword [ebp - 0x1c], 0
je 0x58666e
cmp dword [ebx + 0x310], 0
jne 0x586707
test eax, eax
jne 0x586707
cmp dword [ebx + 0x310], eax
jne 0x586685
mov dword [ebp - 0x60], 1
cmp byte [esi + 0xd8], 0
je 0x586694
add edi, 0x30
adc edx, 0
mov dword [esi + 0x32a0], edi
mov dword [esi + 0x32a4], edx
cmp byte [esi + 0xdf], 0
je 0x5866d9
mov eax, dword [esi + 0x194]
cdq
mov ecx, dword [esi + 0x32a4]
cmp ecx, edx
jl 0x5866d2
jg 0x5866c0
cmp edi, eax
jb 0x5866d2
sub edi, eax
sbb ecx, edx
mov dword [esi + 0x32a0], edi
mov dword [esi + 0x32a4], ecx
jmp 0x5866d9
mov byte [esi + 0xdf], 0
mov edx, dword [esi + 0x32a4]
push edx
mov eax, dword [esi + 0x32a0]
push eax
push str.Range:_bytes_I64d__r_n
lea ecx, [ebp + 0xa8]
push ecx
call fcn.00623a6b
add esp, 0x10
mov byte [esi + 0x3214], 0
jmp 0x586812
mov ecx, esi
call fcn.0057b950
mov ebx, eax
mov dword [ebp - 0x7c], ebx
mov ecx, edx
mov dword [ebp - 0x78], ecx
mov eax, dword [esi + 0x3208]
test eax, eax
je 0x586767
cmp byte [eax + 0x25f], 0
je 0x586733
add ebx, 1
adc ecx, 0
jmp 0x586761
mov edx, dword [esi + 0x58]
sub edx, 1
mov eax, dword [esi + 0x5c]
sbb eax, 0
cmp eax, ecx
jl 0x586767
jg 0x586749
cmp edx, ebx
jbe 0x586767
add ebx, 0x40
adc ecx, 0
cmp eax, ecx
jl 0x58675d
jg 0x586759
cmp edx, ebx
jbe 0x58675d
mov edx, ebx
mov eax, ecx
mov ebx, edx
mov ecx, eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ecx
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
cmp byte [esi + 0xd8], 0
je 0x58677c
add eax, 0x30
adc edx, 0
mov dword [esi + 0x32a0], eax
mov dword [esi + 0x32a4], edx
cmp byte [esi + 0xdf], 0
je 0x5867e1
mov eax, dword [esi + 0x194]
cdq
mov dword [ebp + 0x168], eax
mov eax, edx
mov dword [ebp + 0x16c], eax
mov edx, dword [esi + 0x32a0]
mov edi, dword [esi + 0x32a4]
cmp edi, eax
jl 0x5867da
jg 0x5867c0
cmp edx, dword [ebp + 0x168]
jb 0x5867da
sub edx, dword [ebp + 0x168]
sbb edi, dword [ebp + 0x16c]
mov dword [esi + 0x32a0], edx
mov dword [esi + 0x32a4], edi
jmp 0x5867e1
mov byte [esi + 0xdf], 0
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ecx
push ecx
push ebx
mov edx, dword [esi + 0x32a4]
push edx
mov eax, dword [esi + 0x32a0]
push eax
push str.Range:_bytes_I64d__I64d_r_n
lea ecx, [ebp + 0xa8]
push ecx
call fcn.00623a6b
mov byte [esi + 0x3214], 1
add esp, 0x18
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x586821
mov ecx, dword [eax + 0xc]
jmp 0x58682a
mov edx, dword [esi + 0xc8]
mov ecx, dword [edx + 0x14]
test eax, eax
je 0x586833
mov eax, dword [eax + 0x10]
jmp 0x58683c
mov eax, dword [esi + 0xc8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x34], eax
cmp ecx, 0x50
jne 0x5868ca
cmp eax, 1
je 0x5868df
push ecx
push str.:_ld
lea edx, [ebp + 0x128]
push edx
call fcn.00623a6b
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.004024f0
mov byte [ebp - 4], 7
mov ecx, dword [esi + 0xc8]
cmp byte [ecx + 0x352], 0
je 0x58688e
cmp byte [ecx + 0x354], 0
jne 0x586935
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x5868f8
push 7
push str.file:__
push eax
call fcn.006282cf
add esp, 0xc
test eax, eax
je 0x586935
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 0x18]
push ecx
push str.Referer:__s_r_n
lea edx, [ebp - 0x30]
push edx
call fcn.00402f60
add esp, 0xc
jmp 0x586942
cmp ecx, 0x1bb
jne 0x586851
cmp eax, 2
jne 0x586851
push 0x67997c
lea ecx, [ebp + 0x128]
push ecx
call fcn.00623a6b
add esp, 8
jmp 0x586866
cmp byte [ecx + 0x35f], 0
je 0x586935
mov eax, dword [ecx + 0x118]
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x586910
sub eax, edi
je 0x586935
mov eax, dword [ecx + 0x118]
push eax
push str.Referer:__s_r_n
lea ecx, [ebp - 0x30]
push ecx
call fcn.00402f60
add esp, 0xc
jmp 0x586942
push 0x67997c
lea ecx, [ebp - 0x30]
call fcn.0054f750
push 0x67997c
lea ecx, [ebp - 0x5c]
call fcn.004030a0
mov byte [ebp - 4], 8
mov eax, dword [esi + 0xc8]
cmp byte [eax + 0x357], 0
je 0x5869be
mov eax, dword [eax + 0x20]
test eax, eax
je 0x5869be
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x586970
sub eax, edx
mov dword [ebp - 0x84], eax
cmp eax, 1
jle 0x5869be
mov edx, dword [esi + 0xc8]
mov ecx, dword [edx + 0x20]
lea ecx, [ecx + eax - 1]
mov dl, byte [ecx]
cmp dl, 0xa
je 0x58699d
cmp dl, 0xd
jne 0x5869a3
mov byte [ecx], 0
dec eax
jmp 0x586979
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x20]
push eax
push str.If_Modified_Since:__s_r_n
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00402f60
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.004024f0
mov byte [ebp - 4], 9
mov edx, dword [esi + 0xcc]
test edx, edx
je 0x5869f0
mov eax, dword [edx + 0x1c]
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5869e0
sub eax, edi
je 0x586a25
mov edx, dword [edx + 0x1c]
jmp 0x586a11
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0xd0]
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x586a00
sub eax, edi
je 0x586a25
mov edx, dword [edx + 0xd0]
push edx
push 0x678ea8
lea eax, [ebp - 0x28]
push eax
call fcn.00402f60
add esp, 0xc
jmp 0x586a36
push str.application_x_www_form_urlencoded
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402f60
add esp, 8
lea ecx, [ebp - 0x4c]
call fcn.004024f0
mov byte [ebp - 4], 0xa
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x586a5b
cmp byte [eax + 0x14], 0
je 0x586ab4
mov edx, dword [eax + 0x18]
mov eax, dword [edx - 0xc]
push eax
jmp 0x586a9f
mov eax, dword [esi + 0xc8]
cmp byte [eax + 0x195], 0
je 0x586a89
mov edx, dword [eax + 0x198]
mov eax, dword [edx - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push eax
push str.Content_Type:__s_r_nContent_Length:__d_r_n
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00402f60
add esp, 0x10
mov eax, dword [esi + 0xc8]
cmp byte [eax + 0x1a8], 0
je 0x586ab4
mov edx, dword [eax + 0x1a4]
push edx
mov eax, dword [ebp - 0x28]
push eax
push str.Content_Type:__s_r_nContent_Length:__d_r_n
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00402f60
add esp, 0x10
lea ecx, [ebp - 0x58]
call fcn.004024f0
mov byte [ebp - 4], 0xb
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x378]
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x586ad0
sub eax, edi
je 0x586af3
mov edx, dword [edx + 0x378]
push edx
push str.Cookie2:__s_r_n
lea eax, [ebp - 0x58]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [esi + 0xc8]
mov eax, dword [ecx + 0x37c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x586b02
sub eax, edx
jne 0x586bc4
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp dword [0x75dbac], eax
je 0x586b55
push 0x5f
lea edx, [ebp]
push edx
push 0x5c
push 0x400
call edi
test eax, eax
je 0x586b55
lea eax, [ebp]
push eax
push 0x678ea8
mov ecx, dword [esi + 0xc8]
add ecx, 0x37c
push ecx
call fcn.00402f60
add esp, 0xc
jmp 0x586bc4
push 9
lea edx, [ebp + 0x138]
push edx
push 0x59
push 0x400
call edi
test eax, eax
je 0x586baa
push 9
lea eax, [ebp + 0x168]
push eax
push 0x5a
push 0x400
call edi
test eax, eax
je 0x586baa
lea ecx, [ebp + 0x168]
push ecx
lea edx, [ebp + 0x138]
push edx
push str._s__s
mov eax, dword [esi + 0xc8]
add eax, 0x37c
push eax
call fcn.00402f60
add esp, 0x10
jmp 0x586bc4
push str.en_US
mov ecx, dword [esi + 0xc8]
add ecx, 0x37c
push ecx
call fcn.00402f60
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.004024f0
mov byte [ebp - 4], 0xc
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x37c]
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x586be0
sub eax, edi
je 0x586c03
mov edx, dword [edx + 0x37c]
push edx
push str.Accept_Language:__s_r_n
lea eax, [ebp - 0x64]
push eax
call fcn.00402f60
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.004024f0
mov byte [ebp - 4], 0xd
mov ecx, dword [esi + 0xc8]
mov eax, dword [ecx]
push 0x2e
push eax
call fcn.00623330
add esp, 8
test eax, eax
je 0x586c45
push str..monster
push eax
call fcn.006226ae
add esp, 8
test eax, eax
jne 0x586c45
mov edx, dword [esi + 0xc8]
mov byte [edx + 0x35d], 1
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x380]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x586c54
sub eax, edi
je 0x586c7c
mov eax, dword [edx + 0x380]
push eax
push str.Origin:__s_r_n
lea ecx, [ebp - 0x44]
push ecx
call fcn.00402f60
add esp, 0xc
jmp 0x586d71
cmp byte [edx + 0x35d], 0
jne 0x586d71
mov eax, dword [edx + 0x118]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x586c92
sub eax, edi
je 0x586cb7
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov byte [ebp - 4], 0xe
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x118]
jmp 0x586d14
mov eax, dword [edx + 0x18]
test eax, eax
je 0x586d71
cmp byte [edx + 0x352], 0
jne 0x586d71
mov byte [ebp - 0x29], 0
push 0x2e
push eax
call fcn.00623330
add esp, 8
test eax, eax
je 0x586cff
push 4
push str..swf
push eax
call fcn.006282cf
add esp, 0xc
test eax, eax
jne 0x586cff
mov byte [ebp - 0x29], 1
jmp 0x586d71
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov byte [ebp - 4], 0xf
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x18]
push eax
push 0x678ea8
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f60
push 0x679990
mov edx, dword [ebp - 0x18]
push edx
call fcn.00622230
add esp, 0x14
test eax, eax
je 0x586d65
push 0x679d14
add eax, 3
push eax
call fcn.006232f0
add esp, 8
test eax, eax
je 0x586d65
mov byte [eax], 0
mov eax, dword [ebp - 0x18]
push eax
push str.Origin:__s_r_n
lea ecx, [ebp - 0x44]
push ecx
call fcn.00402f60
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x18]
call fcn.00402560
lea ecx, [ebp - 0x48]
call fcn.004024f0
mov byte [ebp - 4], 0x10
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x388]
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x586d90
sub eax, edi
je 0x586db5
mov edx, dword [edx + 0x388]
push edx
push str.Accept_Charset:__s_r_n
lea eax, [ebp - 0x48]
push eax
call fcn.00402f60
add esp, 0xc
jmp 0x586dda
cmp byte [edx + 0x35e], 0
je 0x586dc9
push 0x67997c
lea ecx, [ebp - 0x48]
push ecx
jmp 0x586dd2
push str.Accept_Charset:__r_n
lea edx, [ebp - 0x48]
push edx
call fcn.00402f60
add esp, 8
lea ecx, [ebp - 0x38]
call fcn.004024f0
mov byte [ebp - 4], 0x11
mov ecx, dword [esi + 0xc8]
cmp byte [ecx + 0x35a], 0
je 0x586e00
push str.Accept_Encoding:_gzip__deflate_r_n
lea eax, [ebp - 0x38]
push eax
jmp 0x586e66
cmp byte [ecx + 0x34d], 0
jne 0x586e12
cmp byte [ecx + 0x34e], 0
je 0x586e22
cmp byte [ecx + 0x350], 0
jne 0x586e22
push 0x67997c
jmp 0x586e62
mov eax, dword [ecx + 0x408]
lea edi, [eax + 1]
jmp 0x586e30
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x586e30
sub eax, edi
je 0x586e5d
cmp byte [ecx + 0x361], dl
je 0x586e5d
mov edx, dword [ecx + 0x408]
push edx
push str.Accept_Encoding:__s_r_n
lea eax, [ebp - 0x38]
push eax
call fcn.00402f60
add esp, 0xc
jmp 0x586e6e
push str.Accept_Encoding:_identity_r_n
lea ecx, [ebp - 0x38]
push ecx
call fcn.00402f60
add esp, 8
lea ecx, [ebp - 0x54]
call fcn.004024f0
mov byte [ebp - 4], 0x12
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x586e8c
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x586e9b
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 0x198]
mov dword [ebp - 0x1c], ecx
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 0x38c]
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x586eb0
sub eax, edi
je 0x586ed1
cmp byte [edx + 0x359], cl
je 0x586ed1
mov edx, dword [edx + 0x38c]
mov dword [ebp - 0x3c], edx
mov ebx, dword [ebp - 0x20]
jmp 0x586ef0
push 0x67997c
lea ecx, [ebp - 0x14]
call fcn.004030a0
mov byte [ebp - 4], 0x13
mov ebx, dword [ebp - 0x20]
or ebx, 4
mov dword [ebp - 0x20], ebx
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov ecx, 0x67997c
cmp dword [ebp - 0x60], 0
mov dword [ebp - 0x18], str.Cache_Control:_no_cache_r_nPragma:_no_cache_r_n
jne 0x586f05
mov dword [ebp - 0x18], ecx
mov eax, dword [esi + 0x3228]
test eax, eax
mov dword [ebp - 0x68], 0x67b29c
jne 0x586f3e
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x80], ecx
test eax, eax
mov dword [ebp - 0x6c], 0x6b15f8
jne 0x586f2a
mov dword [ebp - 0x6c], ecx
mov edx, dword [esi + 0xc8]
cmp byte [ebp - 0x21], 0
je 0x586f43
mov eax, dword [edx + 0x390]
jmp 0x586f5a
mov dword [ebp - 0x80], eax
jmp 0x586f1c
cmp byte [edx + 0x1ae], 0
je 0x586f54
mov eax, dword [esi + 0x3238]
jmp 0x586f5a
mov eax, dword [esi + 0x32c8]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x32c8]
cmp dword [eax - 0xc], 0
je 0x586f82
cmp byte [edx + 0x1ae], 0
jne 0x586f82
cmp dword [esi + 0x32cc], 0
mov dword [ebp - 0x50], str.Connection:_Keep_Alive_r_n
je 0x586f85
mov dword [ebp - 0x50], ecx
mov eax, dword [edx + 0x384]
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x586f90
sub eax, edi
je 0x586fa3
mov edi, dword [edx + 0x384]
jmp 0x586fc2
push 0x6b15d8
lea ecx, [ebp - 0x8c]
call fcn.004030a0
mov dword [ebp - 4], 0x14
or ebx, 8
mov dword [ebp - 0x20], ebx
mov edi, dword [eax]
mov eax, dword [esi + 0xcc]
test eax, eax
jne 0x586fed
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x88]
call fcn.004030a0
mov dword [ebp - 4], 0x15
or ebx, 0x10
mov dword [ebp - 0x20], ebx
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp + 0xa8]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x38]
push ecx
push edi
mov edx, dword [esi + 0xc8]
mov ecx, dword [edx + 0x19c]
push ecx
lea edx, [ebp + 0x128]
push edx
push eax
mov eax, dword [esi + 0x3224]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push str._s__s_HTTP_1.1_r_nHost:__s_s_r_nUser_Agent:__s_r_nAccept:__s_r_n_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_r_n_s
lea edx, [ebp - 0x54]
push edx
call fcn.00402f60
add esp, 0x64
mov dword [ebp - 4], 0x14
test bl, 0x10
je 0x587085
and ebx, 0xffffffef
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x88]
call fcn.00402560
mov dword [ebp - 4], 0x13
test bl, 8
je 0x5870a2
and ebx, 0xfffffff7
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x8c]
call fcn.00402560
mov dword [ebp - 4], 0x12
test bl, 4
je 0x5870bc
and ebx, 0xfffffffb
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x14]
call fcn.00402560
cmp dword [esi + 0x64], 0
jg 0x5870d2
jl 0x5870ca
cmp dword [esi + 0x60], 0
ja 0x5870d2
mov eax, dword [esi + 0x78]
or eax, dword [esi + 0x7c]
je 0x587136
lea ecx, [ebp - 0x1c]
call fcn.004024f0
mov byte [ebp - 4], 0x16
lea eax, [ebp + 0xa8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5870e7
sub eax, edx
lea eax, [ebp + 0xb5]
jne 0x5870fd
mov eax, 0x67b29c
push eax
mov ecx, dword [esi + 0x7c]
push ecx
mov edx, dword [esi + 0x78]
push edx
mov eax, dword [esi + 0x64]
push eax
mov ecx, dword [esi + 0x60]
push ecx
push str._I64d__I64d___s
lea edx, [ebp - 0x1c]
push edx
call fcn.00402f60
add esp, 0x1c
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00562270
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov dword [esi + 0x325c], 0
mov byte [esi + 0xe0], 0
mov dword [esi + 0x3204], 1
mov ecx, esi
call fcn.005624d0
mov dword [esi + 0xa4], 4
cmp dword [ebp - 0x34], 2
jne 0x5871b9
mov edx, dword [ebp - 0x54]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x587170
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.005dd450
mov edi, eax
mov dword [ebp - 0x74], edi
mov eax, dword [esi + 0xc8]
cmp byte [eax + 0x1a8], 0
je 0x58721f
mov ecx, dword [eax + 0x1a0]
test ecx, ecx
je 0x58721f
mov edx, dword [eax + 0x1a4]
push edx
push ecx
mov ecx, esi
call fcn.005dd450
jmp 0x58721f
cmp dword [ebp + 0x180], 0
mov edx, str.send___HEAD
jne 0x5871cc
mov edx, str.send___GET
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax - 0xc]
push edx
push 0
push ecx
push eax
mov eax, dword [esi + 0x3200]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00562bc0
mov edi, eax
mov dword [ebp - 0x74], edi
mov eax, dword [esi + 0xc8]
cmp byte [eax + 0x1a8], 0
je 0x58721f
mov ecx, dword [eax + 0x1a0]
test ecx, ecx
je 0x58721f
push 0
mov edx, dword [eax + 0x1a4]
push edx
push ecx
mov eax, dword [esi + 0x3200]
push eax
call sub.WS2_32.dll_send
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54]
call fcn.00402560
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x38]
call fcn.00402560
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x48]
call fcn.00402560
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x44]
call fcn.00402560
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x64]
call fcn.00402560
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x58]
call fcn.00402560
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c]
call fcn.00402560
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.00402560
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5c]
call fcn.00402560
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00402560
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402560
mov eax, edi
jmp 0x5872c7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x174]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x178
mov esp, ebp
pop ebp
ret 4