Function at 0x40337c
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 8
call fcn.00407113
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, eax
mov esi, 0x477704
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
cmp dword [ebp + 0xc], 1
mov eax, 0
sete al
test eax, eax
je 0x4033fd
mov eax, str.POST
jmp 0x403402
mov eax, 0x4777bc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403419
push ebx
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push VariantClear
push 0
push str.User_Agent:
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x403450
mov eax, 0x477779
push eax
push 4
mov ebx, 0x407600
call fcn.0040710d
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x40355d
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov eax, 0x4777cc
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, str.User_Agent:
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x2c]
call fcn.00401e4b
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4034bb
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4034cb
push ebx
call fcn.00407107
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4034de
mov eax, 0x477779
push eax
push 1
mov ebx, 0x407ac0
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x403504
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403518
push ebx
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x477779
push dword [ebp - 8]
call fcn.004017d6
add esp, 8
cmp eax, 0
jne 0x403558
push dword [ebp + 0x2c]
call fcn.0040438a
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403554
push ebx
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x403577
mov eax, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0_
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403573
push ebx
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x50], 0
jne 0x403623
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x407470
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x407470
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push 1
push dword [ebp - 8]
mov eax, 3
call fcn.00407101
cmp dword [ebp - 0x34], esp
je 0x4035f5
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403608
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x403618
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
jmp 0x4036c3
mov ebx, dword [ebp + 0x4c]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.00401090
add esp, 8
mov dword [ebp - 0x2c], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x403650
mov eax, 0x477779
push eax
push 1
mov ebx, 0x4080c0
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403676
push ebx
call fcn.00407107
add esp, 4
mov dword [ebp - 0x34], esp
push 0
push 0x477779
push dword [ebp - 0x30]
push 3
push dword [ebp - 8]
mov eax, 3
call fcn.00407101
cmp dword [ebp - 0x34], esp
je 0x4036aa
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4036bd
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4036f9
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 4
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x4036ef
push 6
call fcn.004070fb
add esp, 4
mov eax, 0x477704
jmp 0x4042fd
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
push dword [ebp + 8]
call fcn.0040189a
mov dword [ebp - 0x34], eax
push dword [ebp + 8]
call fcn.004044d0
mov dword [ebp - 0x38], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x407470
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x3c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x407470
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push 0
push 0
push 3
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push dword [ebp - 0xc]
mov eax, 5
call fcn.00407101
cmp dword [ebp - 0x44], esp
je 0x4037a6
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4037b9
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4037c9
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4037d9
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x403837
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 4
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x40380b
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 4
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x40382d
push 6
call fcn.004070fb
add esp, 4
mov eax, 0x477704
jmp 0x4042fd
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push closesocket
push 2
mov ebx, 0x4072c0
call fcn.0040710d
add esp, 0x1c
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0x80000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x4072c0
call fcn.0040710d
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x3c], 0
je 0x4038c4
push 0x80000301
push 0
push 0x200000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x4072c0
call fcn.0040710d
add esp, 0x1c
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 5
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4038e5
mov eax, 0x477779
push eax
push 2
mov ebx, 0x407380
call fcn.0040710d
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40390e
mov eax, 0x477779
push eax
push 1
mov ebx, 0x4077a0
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403934
push ebx
call fcn.00407107
add esp, 4
push str.https
push dword [ebp - 0x30]
call fcn.004017d6
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x403962
push ebx
call fcn.00407107
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x40399c
push 0x80000301
push 0
push 0x800000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x4072c0
call fcn.0040710d
add esp, 0x1c
mov dword [ebp - 0x14], eax
jmp 0x4039c7
push 0x80000301
push 0
push 0x4000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x4072c0
call fcn.0040710d
add esp, 0x1c
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call fcn.00404704
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x407470
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x407470
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push str.HTTP_1.1
push dword [ebp - 0x2c]
push dword [ebp - 4]
push dword [ebp - 0x10]
mov eax, 6
call fcn.00407101
cmp dword [ebp - 0x38], esp
je 0x403a4f
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403a62
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x403a72
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x403a82
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x403b02
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
mov eax, 4
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403ab4
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 4
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403ad6
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 4
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403af8
push 6
call fcn.004070fb
add esp, 4
mov eax, 0x477704
jmp 0x4042fd
push 0x477779
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.004017d6
add esp, 8
cmp eax, 0
jne 0x403b58
push str._r_nAccept:___r_nAccept_Language:_zh_cn_r_nUser_Agent:_Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0__r_nContent_Type:_application_x_www_form_urlencoded
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Referer:
mov ecx, 3
call fcn.00401090
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403b52
push ebx
call fcn.00407107
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push 0x477779
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.004017d6
add esp, 8
cmp eax, 0
je 0x403bae
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push str._r_nCookie:
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 3
call fcn.00401090
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403ba8
push ebx
call fcn.00407107
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
cmp dword [ebp + 0xc], 0
jne 0x403c1c
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x403bcd
mov eax, 0x477779
push eax
push 1
mov ebx, 0x4072e0
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push 0
push 0x477779
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push dword [ebp - 0x18]
mov eax, 7
call fcn.00407101
cmp dword [ebp - 0x30], esp
je 0x403c17
push 6
call fcn.004070fb
add esp, 4
jmp 0x403d36
mov eax, 0x477704
xor ecx, ecx
test eax, eax
je 0x403c2a
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x403c3d
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x403c54
dec eax
test ecx, ecx
je 0x403c54
call fcn.00403279
add esp, 0xc
test eax, eax
jne 0x403ca6
push VariantClear
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x403c74
mov eax, 0x477779
push eax
push 1
mov ebx, 0x407e80
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x44]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403ca0
push ebx
call fcn.00407107
add esp, 4
pop eax
mov ebx, dword [ebp + 0x44]
mov dword [ebx], eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x403cbb
mov eax, 0x477779
push eax
push 1
mov ebx, 0x4072e0
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x2c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x403ce6
mov eax, 0x477704
push eax
push 1
mov ebx, 0x407300
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push dword [ebp - 0x30]
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
je 0x403d0e
add eax, 8
push eax
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push dword [ebp - 0x18]
mov eax, 8
call fcn.00407101
cmp dword [ebp - 0x34], esp
je 0x403d36
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x1c], 0
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x407fc0
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x403d72
push ebx
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x1c]
push eax
push 0x400
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x403d8c
add eax, 8
push eax
push dword [ebp - 0x18]
mov eax, 9
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403dac
push 6
call fcn.004070fb
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x403dc0
jmp 0x403e36
push 0x80000301
push 0
push dword [ebp - 0x1c]
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x403ddd
mov eax, 0x477704
push eax
push 2
mov ebx, 0x407f80
call fcn.0040710d
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
mov ecx, 2
call fcn.00403325
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403e19
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x403e2d
push ebx
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
jmp 0x403d3d
push 0x80000301
push 0
push 0x1388
push 1
mov ebx, 0x407f30
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403e6d
push ebx
call fcn.00407107
add esp, 4
pop eax
mov ebx, dword [ebp + 0x54]
mov dword [ebx], eax
mov dword [ebp - 0x2c], esp
push 0
mov eax, 0x1388
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x54]
push dword [ebx]
push 0x16
push dword [ebp - 0x18]
mov eax, 0xa
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403eb0
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
mov eax, 4
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403ed2
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 4
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403ef4
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 4
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403f16
push 6
call fcn.004070fb
add esp, 4
push 0
push 0
push 0
push VariantClear
push 0
push 0x4777cc
push VariantClear
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x403f3d
mov eax, 0x477779
push eax
push 3
mov ebx, 0x407cf0
call fcn.0040710d
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x403f75
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403f71
imul eax, dword [ebx]
jmp 0x403f66
mov ecx, eax
test ecx, ecx
je 0x403f94
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x403f8d
push ebx
push eax
call fcn.00407107
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403f7b
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov eax, 0x477779
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403fb8
push ebx
call fcn.00407107
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.0040145f
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40426f
mov ebx, dword [ebp - 0x28]
call fcn.00401478
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x403ffa
push 4
call fcn.004070fb
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40400d
push 1
call fcn.004070fb
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
push str.Location:
push VariantClear
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x404048
mov eax, 0x477779
push eax
push 4
mov ebx, 0x407600
call fcn.0040710d
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x4040c7
mov ebx, dword [ebp - 0x28]
call fcn.00401478
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x404085
push 4
call fcn.004070fb
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404098
push 1
call fcn.004070fb
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x2c]
call fcn.0040438a
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4040c1
push ebx
call fcn.00407107
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.00401478
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x4040e4
push 4
call fcn.004070fb
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4040f7
push 1
call fcn.004070fb
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
push str.Set_Cookie
push VariantClear
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x404132
mov eax, 0x477779
push eax
push 4
mov ebx, 0x407600
call fcn.0040710d
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x404267
mov ebx, dword [ebp - 0x28]
call fcn.00401478
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40416f
push 4
call fcn.004070fb
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404182
push 1
call fcn.004070fb
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov eax, 0x47770c
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov eax, str.Set_Cookie:
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
call fcn.00401e4b
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4041d5
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4041e5
push ebx
call fcn.00407107
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x4041f8
mov eax, 0x477779
push eax
push 1
mov ebx, 0x407ac0
call fcn.0040710d
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40421e
push ebx
call fcn.00407107
add esp, 4
push 0x4777aa
push dword [ebp - 0x44]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.00401090
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40424b
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x404261
push ebx
call fcn.00407107
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x403fcf
add esp, 0xc
push 0x477779
mov ebx, dword [ebp + 0x34]
push dword [ebx]
call fcn.004017d6
add esp, 8
cmp eax, 0
jne 0x4042c4
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
je 0x4042ab
push eax
mov ebx, eax
call fcn.00401025
inc eax
push eax
call fcn.00407113
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4042be
push ebx
call fcn.00407107
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
call fcn.0040235d
mov ebx, eax
test ebx, ebx
je 0x4042de
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4042f8
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00407113
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4042fd
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40430e
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40431e
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40432e
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40433e
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40435c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x404358
imul eax, dword [ebx]
jmp 0x40434d
mov ecx, eax
test ecx, ecx
je 0x40437b
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x404374
push ebx
push eax
call fcn.00407107
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x404362
call fcn.00407107
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x54