Function at 0x4020f0
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.00412016
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, eax
mov esi, 0x489237
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 0x402171
mov eax, str.POST
jmp 0x402176
mov eax, 0x4891de
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40218d
push ebx
call fcn.00412010
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 0x4021c4
mov eax, 0x488f7c
push eax
push 4
mov ebx, 0x4128f0
call fcn.00412028
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x4022d1
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov eax, 0x4891ee
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.00403106
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40222f
push ebx
call fcn.00412010
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40223f
push ebx
call fcn.00412010
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x402252
mov eax, 0x488f7c
push eax
push 1
mov ebx, 0x412dc0
call fcn.00412028
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x402278
push ebx
call fcn.00412010
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40228c
push ebx
call fcn.00412010
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x488f7c
push dword [ebp - 8]
call fcn.00401028
add esp, 8
cmp eax, 0
jne 0x4022cc
push dword [ebp + 0x2c]
call fcn.004033c7
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4022c8
push ebx
call fcn.00412010
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x4022eb
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 0x4022e7
push ebx
call fcn.00412010
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x50], 0
jne 0x402397
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x4126f0
call fcn.00412028
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x4126f0
call fcn.00412028
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, 0
call fcn.00412022
cmp dword [ebp - 0x34], esp
je 0x402369
push 6
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40237c
push ebx
call fcn.00412010
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40238c
push ebx
call fcn.00412010
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
jmp 0x402437
mov ebx, dword [ebp + 0x4c]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.004016b8
add esp, 8
mov dword [ebp - 0x2c], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4023c4
mov eax, 0x488f7c
push eax
push 1
mov ebx, 0x4135e0
call fcn.00412028
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4023ea
push ebx
call fcn.00412010
add esp, 4
mov dword [ebp - 0x34], esp
push 0
push 0x488f7c
push dword [ebp - 0x30]
push 3
push dword [ebp - 8]
mov eax, 0
call fcn.00412022
cmp dword [ebp - 0x34], esp
je 0x40241e
push 6
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402431
push ebx
call fcn.00412010
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40246d
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 1
call fcn.00412022
cmp dword [ebp - 0x2c], esp
je 0x402463
push 6
call fcn.0041201c
add esp, 4
mov eax, 0x489237
jmp 0x403071
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.0040350d
mov dword [ebp - 0x34], eax
push dword [ebp + 8]
call fcn.00403ab6
mov dword [ebp - 0x38], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x4126f0
call fcn.00412028
add esp, 0x10
mov dword [ebp - 0x3c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x4126f0
call fcn.00412028
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, 2
call fcn.00412022
cmp dword [ebp - 0x44], esp
je 0x40251a
push 6
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40252d
push ebx
call fcn.00412010
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40253d
push ebx
call fcn.00412010
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40254d
push ebx
call fcn.00412010
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4025ab
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 1
call fcn.00412022
cmp dword [ebp - 0x2c], esp
je 0x40257f
push 6
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 1
call fcn.00412022
cmp dword [ebp - 0x2c], esp
je 0x4025a1
push 6
call fcn.0041201c
add esp, 4
mov eax, 0x489237
jmp 0x403071
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push SysReAllocString
push 2
mov ebx, 0x412350
call fcn.00412028
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, 0x412350
call fcn.00412028
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x3c], 0
je 0x402638
push 0x80000301
push 0
push 0x200000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x412350
call fcn.00412028
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 0x402659
mov eax, 0x488f7c
push eax
push 2
mov ebx, 0x412600
call fcn.00412028
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x402682
mov eax, 0x488f7c
push eax
push 1
mov ebx, 0x412aa0
call fcn.00412028
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4026a8
push ebx
call fcn.00412010
add esp, 4
push str.https
push dword [ebp - 0x30]
call fcn.00401028
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 0x4026d6
push ebx
call fcn.00412010
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x402710
push 0x80000301
push 0
push 0x800000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x412350
call fcn.00412028
add esp, 0x1c
mov dword [ebp - 0x14], eax
jmp 0x40273b
push 0x80000301
push 0
push 0x4000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x412350
call fcn.00412028
add esp, 0x1c
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call fcn.00403cea
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x4126f0
call fcn.00412028
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x4126f0
call fcn.00412028
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, 3
call fcn.00412022
cmp dword [ebp - 0x38], esp
je 0x4027c3
push 6
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4027d6
push ebx
call fcn.00412010
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4027e6
push ebx
call fcn.00412010
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4027f6
push ebx
call fcn.00412010
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402876
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
mov eax, 1
call fcn.00412022
cmp dword [ebp - 0x2c], esp
je 0x402828
push 6
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 1
call fcn.00412022
cmp dword [ebp - 0x2c], esp
je 0x40284a
push 6
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 1
call fcn.00412022
cmp dword [ebp - 0x2c], esp
je 0x40286c
push 6
call fcn.0041201c
add esp, 4
mov eax, 0x489237
jmp 0x403071
push 0x488f7c
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.00401028
add esp, 8
cmp eax, 0
jne 0x4028cc
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.004016b8
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 0x4028c6
push ebx
call fcn.00412010
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push 0x488f7c
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.00401028
add esp, 8
cmp eax, 0
je 0x402922
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.004016b8
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 0x40291c
push ebx
call fcn.00412010
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
cmp dword [ebp + 0xc], 0
jne 0x402990
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x402941
mov eax, 0x488f7c
push eax
push 1
mov ebx, 0x412490
call fcn.00412028
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push 0
push 0x488f7c
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push dword [ebp - 0x18]
mov eax, 4
call fcn.00412022
cmp dword [ebp - 0x30], esp
je 0x40298b
push 6
call fcn.0041201c
add esp, 4
jmp 0x402aaa
mov eax, 0x489237
xor ecx, ecx
test eax, eax
je 0x40299e
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 0x4029b1
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x4029c8
dec eax
test ecx, ecx
je 0x4029c8
call fcn.00401fb4
add esp, 0xc
test eax, eax
jne 0x402a1a
push VariantClear
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x4029e8
mov eax, 0x488f7c
push eax
push 1
mov ebx, 0x413180
call fcn.00412028
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 0x402a14
push ebx
call fcn.00412010
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 0x402a2f
mov eax, 0x488f7c
push eax
push 1
mov ebx, 0x412490
call fcn.00412028
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 0x402a5a
mov eax, 0x489237
push eax
push 1
mov ebx, 0x4124b0
call fcn.00412028
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 0x402a82
add eax, 8
push eax
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push dword [ebp - 0x18]
mov eax, 5
call fcn.00412022
cmp dword [ebp - 0x34], esp
je 0x402aaa
push 6
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x1c], 0
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x4134e0
call fcn.00412028
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402ae6
push ebx
call fcn.00412010
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 0x402b00
add eax, 8
push eax
push dword [ebp - 0x18]
mov eax, 6
call fcn.00412022
cmp dword [ebp - 0x2c], esp
je 0x402b20
push 6
call fcn.0041201c
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x402b34
jmp 0x402baa
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 0x402b51
mov eax, 0x489237
push eax
push 2
mov ebx, 0x413400
call fcn.00412028
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
mov ecx, 2
call fcn.00402060
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402b8d
push ebx
call fcn.00412010
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402ba1
push ebx
call fcn.00412010
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
jmp 0x402ab1
push 0x80000301
push 0
push 0x1388
push 1
mov ebx, 0x413230
call fcn.00412028
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 0x402be1
push ebx
call fcn.00412010
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, 7
call fcn.00412022
cmp dword [ebp - 0x2c], esp
je 0x402c24
push 6
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
mov eax, 1
call fcn.00412022
cmp dword [ebp - 0x2c], esp
je 0x402c46
push 6
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 1
call fcn.00412022
cmp dword [ebp - 0x2c], esp
je 0x402c68
push 6
call fcn.0041201c
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 1
call fcn.00412022
cmp dword [ebp - 0x2c], esp
je 0x402c8a
push 6
call fcn.0041201c
add esp, 4
push 0
push 0
push 0
push VariantClear
push 0
push 0x4891ee
push VariantClear
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x402cb1
mov eax, 0x488f7c
push eax
push 3
mov ebx, 0x412ff0
call fcn.00412028
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 0x402ce9
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402ce5
imul eax, dword [ebx]
jmp 0x402cda
mov ecx, eax
test ecx, ecx
je 0x402d08
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x402d01
push ebx
push eax
call fcn.00412010
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402cef
call fcn.00412010
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov eax, 0x488f7c
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402d2c
push ebx
call fcn.00412010
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.004020b7
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 0x402fe3
mov ebx, dword [ebp - 0x28]
call fcn.004020d0
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x402d6e
push 4
call fcn.0041201c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402d81
push 1
call fcn.0041201c
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 0x402dbc
mov eax, 0x488f7c
push eax
push 4
mov ebx, 0x4128f0
call fcn.00412028
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x402e3b
mov ebx, dword [ebp - 0x28]
call fcn.004020d0
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x402df9
push 4
call fcn.0041201c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402e0c
push 1
call fcn.0041201c
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x2c]
call fcn.004033c7
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 0x402e35
push ebx
call fcn.00412010
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.004020d0
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x402e58
push 4
call fcn.0041201c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402e6b
push 1
call fcn.0041201c
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 0x402ea6
mov eax, 0x488f7c
push eax
push 4
mov ebx, 0x4128f0
call fcn.00412028
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x402fdb
mov ebx, dword [ebp - 0x28]
call fcn.004020d0
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x402ee3
push 4
call fcn.0041201c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402ef6
push 1
call fcn.0041201c
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, 0x48931c
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.00403106
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x402f49
push ebx
call fcn.00412010
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x402f59
push ebx
call fcn.00412010
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x402f6c
mov eax, 0x488f7c
push eax
push 1
mov ebx, 0x412dc0
call fcn.00412028
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x402f92
push ebx
call fcn.00412010
add esp, 4
push 0x48932a
push dword [ebp - 0x44]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.004016b8
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x402fbf
push ebx
call fcn.00412010
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402fd5
push ebx
call fcn.00412010
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x402d43
add esp, 0xc
push 0x488f7c
mov ebx, dword [ebp + 0x34]
push dword [ebx]
call fcn.00401028
add esp, 8
cmp eax, 0
jne 0x403038
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
je 0x40301f
push eax
mov ebx, eax
call fcn.0040164d
inc eax
push eax
call fcn.00412016
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 0x403032
push ebx
call fcn.00412010
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
call fcn.00403ed9
mov ebx, eax
test ebx, ebx
je 0x403052
push ebx
call fcn.00412010
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40306c
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00412016
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403071
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403082
push ebx
call fcn.00412010
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403092
push ebx
call fcn.00412010
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4030a2
push ebx
call fcn.00412010
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4030b2
push ebx
call fcn.00412010
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4030d0
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4030cc
imul eax, dword [ebx]
jmp 0x4030c1
mov ecx, eax
test ecx, ecx
je 0x4030ef
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4030e8
push ebx
push eax
call fcn.00412010
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4030d6
call fcn.00412010
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x54