Function at 0x402d13
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, 0x474705
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 0x402d94
mov eax, 0x47489e
jmp 0x402d99
mov eax, 0x4748a3
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402db0
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 0x402de7
mov eax, 0x4743b4
push eax
push 4
mov ebx, 0x407600
call fcn.0040710d
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x402ef4
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov eax, 0x4748b3
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.00401faa
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x402e52
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x402e62
push ebx
call fcn.00407107
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x402e75
mov eax, 0x4743b4
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 0x402e9b
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402eaf
push ebx
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x4743b4
push dword [ebp - 8]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x402eef
push dword [ebp + 0x2c]
call fcn.00403d21
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402eeb
push ebx
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x402f0e
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 0x402f0a
push ebx
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x50], 0
jne 0x402fba
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, 2
call fcn.00407101
cmp dword [ebp - 0x34], esp
je 0x402f8c
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402f9f
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402faf
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
jmp 0x40305a
mov ebx, dword [ebp + 0x4c]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.0040131a
add esp, 8
mov dword [ebp - 0x2c], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x402fe7
mov eax, 0x4743b4
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 0x40300d
push ebx
call fcn.00407107
add esp, 4
mov dword [ebp - 0x34], esp
push 0
push 0x4743b4
push dword [ebp - 0x30]
push 3
push dword [ebp - 8]
mov eax, 2
call fcn.00407101
cmp dword [ebp - 0x34], esp
je 0x403041
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x403054
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403090
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 3
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403086
push 6
call fcn.004070fb
add esp, 4
mov eax, 0x474705
jmp 0x403c94
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.00403e67
mov dword [ebp - 0x34], eax
push dword [ebp + 8]
call fcn.00404410
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, 4
call fcn.00407101
cmp dword [ebp - 0x44], esp
je 0x40313d
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x403150
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x403160
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x403170
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4031ce
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 3
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x4031a2
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 3
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x4031c4
push 6
call fcn.004070fb
add esp, 4
mov eax, 0x474705
jmp 0x403c94
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 0x40325b
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 0x40327c
mov eax, 0x4743b4
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 0x4032a5
mov eax, 0x4743b4
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 0x4032cb
push ebx
call fcn.00407107
add esp, 4
push str.https
push dword [ebp - 0x30]
call fcn.00401004
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 0x4032f9
push ebx
call fcn.00407107
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x403333
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 0x40335e
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.00404644
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, 5
call fcn.00407101
cmp dword [ebp - 0x38], esp
je 0x4033e6
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4033f9
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x403409
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x403419
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x403499
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
mov eax, 3
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x40344b
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 3
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x40346d
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 3
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x40348f
push 6
call fcn.004070fb
add esp, 4
mov eax, 0x474705
jmp 0x403c94
push 0x4743b4
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x4034ef
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.0040131a
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 0x4034e9
push ebx
call fcn.00407107
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push 0x4743b4
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
je 0x403545
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.0040131a
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 0x40353f
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 0x4035b3
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x403564
mov eax, 0x4743b4
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 0x4743b4
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push dword [ebp - 0x18]
mov eax, 6
call fcn.00407101
cmp dword [ebp - 0x30], esp
je 0x4035ae
push 6
call fcn.004070fb
add esp, 4
jmp 0x4036cd
mov eax, 0x474705
xor ecx, ecx
test eax, eax
je 0x4035c1
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 0x4035d4
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x4035eb
dec eax
test ecx, ecx
je 0x4035eb
call fcn.00402bf7
add esp, 0xc
test eax, eax
jne 0x40363d
push VariantClear
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x40360b
mov eax, 0x4743b4
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 0x403637
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 0x403652
mov eax, 0x4743b4
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 0x40367d
mov eax, 0x474705
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 0x4036a5
add eax, 8
push eax
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 - 0x34], esp
je 0x4036cd
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 0x403709
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 0x403723
add eax, 8
push eax
push dword [ebp - 0x18]
mov eax, 8
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403743
push 6
call fcn.004070fb
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x403757
jmp 0x4037cd
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 0x403774
mov eax, 0x474705
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.00402ca3
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4037b0
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4037c4
push ebx
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
jmp 0x4036d4
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 0x403804
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, 9
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403847
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
mov eax, 3
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x403869
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 3
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x40388b
push 6
call fcn.004070fb
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 3
call fcn.00407101
cmp dword [ebp - 0x2c], esp
je 0x4038ad
push 6
call fcn.004070fb
add esp, 4
push 0
push 0
push 0
push VariantClear
push 0
push 0x4748b3
push VariantClear
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x4038d4
mov eax, 0x4743b4
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 0x40390c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403908
imul eax, dword [ebx]
jmp 0x4038fd
mov ecx, eax
test ecx, ecx
je 0x40392b
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x403924
push ebx
push eax
call fcn.00407107
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403912
call fcn.00407107
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov eax, 0x4743b4
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40394f
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.00402cfa
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 0x403c06
mov ebx, dword [ebp - 0x28]
call fcn.0040226b
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x403991
push 4
call fcn.004070fb
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4039a4
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 0x4039df
mov eax, 0x4743b4
push eax
push 4
mov ebx, 0x407600
call fcn.0040710d
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x403a5e
mov ebx, dword [ebp - 0x28]
call fcn.0040226b
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x403a1c
push 4
call fcn.004070fb
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x403a2f
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.00403d21
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 0x403a58
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.0040226b
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x403a7b
push 4
call fcn.004070fb
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x403a8e
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 0x403ac9
mov eax, 0x4743b4
push eax
push 4
mov ebx, 0x407600
call fcn.0040710d
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x403bfe
mov ebx, dword [ebp - 0x28]
call fcn.0040226b
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x403b06
push 4
call fcn.004070fb
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x403b19
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, 0x4749d9
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.00401faa
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x403b6c
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x403b7c
push ebx
call fcn.00407107
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x403b8f
mov eax, 0x4743b4
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 0x403bb5
push ebx
call fcn.00407107
add esp, 4
push 0x4749e7
push dword [ebp - 0x44]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.0040131a
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x403be2
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 0x403bf8
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 0x403966
add esp, 0xc
push 0x4743b4
mov ebx, dword [ebp + 0x34]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x403c5b
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
je 0x403c42
push eax
mov ebx, eax
call fcn.004012af
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 0x403c55
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.00404833
mov ebx, eax
test ebx, ebx
je 0x403c75
push ebx
call fcn.00407107
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x403c8f
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 0x403c94
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403ca5
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403cb5
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x403cc5
push ebx
call fcn.00407107
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x403cd5
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 0x403cf3
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403cef
imul eax, dword [ebx]
jmp 0x403ce4
mov ecx, eax
test ecx, ecx
je 0x403d12
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x403d0b
push ebx
push eax
call fcn.00407107
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403cf9
call fcn.00407107
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x54