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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 8
call fcn.004054e0
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 8
call fcn.004054e0
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x49c72d
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
push 0x10
call fcn.004054e0
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, 3
mov dword [ebx], eax
mov dword [ebp - 0x14], 0
push 8
call fcn.004054e0
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x49c72d
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], esp
push 0
mov eax, 0
call fcn.004054f2
cmp dword [ebp - 0x1c], esp
je 0x401a1d
push 6
call fcn.004054e6
add esp, 4
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.WinHttp.WinHttpRequest.5.1
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x4078c0
call fcn.004054ec
add esp, 0x28
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401a62
mov eax, 0x49c72d
jmp 0x40278b
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x401a77
mov eax, 0x49c689
push eax
push 1
mov ebx, 0x405ad0
call fcn.004054ec
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401aa3
push ebx
call fcn.004054ce
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push 0x49c689
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x401ae2
mov eax, 0x49c735
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401adc
push ebx
call fcn.004054ce
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
cmp dword [ebp + 0x44], 0xffffffff
je 0x401b73
cmp dword [ebp + 0x44], 1
jge 0x401b02
mov dword [ebp + 0x44], 0x3a98
jmp 0x401b1f
fild dword [ebp + 0x44]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x49c739]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401845
mov dword [ebp + 0x44], eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x49c741
push 0x10030
push 0
push dword [ebp - 4]
push 6
mov ebx, 0x4068b0
call fcn.004054ec
add esp, 0x4c
push 0x49c689
push dword [0x4d0e80]
call fcn.00401004
add esp, 8
cmp eax, 0
je 0x401c37
push 0xa0000004
push 0
push 0x4d0e80
push 0x80000301
push 0
push 2
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.SetProxy
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x4068b0
call fcn.004054ec
add esp, 0x34
push 0x49c689
push dword [0x4d0e84]
call fcn.00401004
add esp, 8
cmp eax, 0
je 0x401c37
push 0xa0000301
push 0
push 0x4d0e8c
push 0xa0000004
push 0
push 0x4d0e88
push 0xa0000004
push 0
push 0x4d0e84
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.SetProxyCredentials
push 0x10030
push 0
push dword [ebp - 4]
push 5
mov ebx, 0x4068b0
call fcn.004054ec
add esp, 0x40
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0xa0000004
push 0
push dword [ebp + 8]
push 0xa0000004
push 0
push dword [ebp + 0xc]
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Open
push 0x10030
push 0
push dword [ebp - 4]
push 5
mov ebx, 0x4068b0
call fcn.004054ec
add esp, 0x40
cmp dword [ebp + 0x3c], 0
je 0x401cc9
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push 6
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Option
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x407810
call fcn.004054ec
add esp, 0x34
push 0x49c689
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x401d1f
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.004012e6
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401d19
push ebx
call fcn.004054ce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push 1
push 1
push dword [ebp + 8]
call fcn.00402873
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040320a
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401d66
push ebx
call fcn.004054ce
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x401d76
push ebx
call fcn.004054ce
add esp, 4
push dword [ebp + 0x1c]
lea eax, [ebp - 0x28]
push eax
call fcn.004035c3
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401d95
push ebx
call fcn.004054ce
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401dab
push ebx
call fcn.004054ce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push 0x49c689
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
je 0x401e0a
push 0xa0000004
push 0
push dword [ebp + 0x1c]
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Cookie
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x4068b0
call fcn.004054ec
add esp, 0x34
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x49c83c
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x401e3d
mov eax, 0x49c689
push eax
push 4
mov ebx, 0x405940
call fcn.004054ec
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x401ee8
push dword [ebp + 0x2c]
call fcn.00404777
mov dword [ebp - 0x1c], eax
push dword [ebp + 0x2c]
call fcn.0040488f
mov dword [ebp - 0x20], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x401e86
mov eax, 0x49c689
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x401e9a
mov eax, 0x49c689
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x4068b0
call fcn.004054ec
add esp, 0x34
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401ed3
push ebx
call fcn.004054ce
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401ee3
push ebx
call fcn.004054ce
add esp, 4
jmp 0x4020e5
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x49c83c
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x401f0f
mov eax, 0x49c689
push eax
push 3
mov ebx, 0x406040
call fcn.004054ec
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x401f47
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x401f43
imul eax, dword [ebx]
jmp 0x401f38
mov ecx, eax
test ecx, ecx
je 0x401f66
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x401f5f
push ebx
push eax
call fcn.004054ce
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x401f4d
call fcn.004054ce
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.0040186c
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4020e2
mov ebx, dword [ebp - 8]
call fcn.00401885
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x401fae
push 4
call fcn.004054e6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401fc1
push 1
call fcn.004054e6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x49c689
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
je 0x4020da
mov ebx, dword [ebp - 8]
call fcn.00401885
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x402001
push 4
call fcn.004054e6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402014
push 1
call fcn.004054e6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x1c]
call fcn.00404777
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 8]
call fcn.00401885
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x402044
push 4
call fcn.004054e6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402057
push 1
call fcn.004054e6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x24]
call fcn.0040488f
mov dword [ebp - 0x28], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40207d
mov eax, 0x49c689
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x402091
mov eax, 0x49c689
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x4068b0
call fcn.004054ec
add esp, 0x34
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4020ca
push ebx
call fcn.004054ce
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4020da
push ebx
call fcn.004054ce
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x401f83
add esp, 0xc
mov eax, 0x49c72d
xor ecx, ecx
test eax, eax
je 0x4020f3
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x402106
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x40211d
dec eax
test ecx, ecx
je 0x40211d
call fcn.004018a5
add esp, 0xc
test eax, eax
jne 0x40215f
push 0xa0000004
push 0
push dword [ebp + 0x14]
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Send
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x4068b0
call fcn.004054ec
add esp, 0x28
jmp 0x4021ca
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x40217a
mov eax, 0x49c72d
push eax
push 0x10031
push 0
push dword [ebp - 0x10]
push 3
mov ebx, 0x407340
call fcn.004054ec
add esp, 0x28
push 0x20010031
push 0
lea eax, [ebp - 0x10]
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Send
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x4068b0
call fcn.004054ec
add esp, 0x28
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.ResponseBody
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x406880
call fcn.004054ec
add esp, 0x28
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x10031
push 0
push dword [ebp - 0x1c]
push 2
mov ebx, 0x406900
call fcn.004054ec
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x4068e0
call fcn.004054ec
add esp, 0x10
call fcn.004054ce
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402257
push ebx
call fcn.004054ce
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.GetallResponseHeaders
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x406850
call fcn.004054ec
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp + 0x4c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4022a2
push ebx
call fcn.004054ce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x4c]
mov dword [ebx], eax
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x49c83c
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 0x4c]
mov eax, dword [ebx]
test eax, eax
jne 0x4022cf
mov eax, 0x49c689
push eax
push 3
mov ebx, 0x406040
call fcn.004054ec
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402307
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402303
imul eax, dword [ebx]
jmp 0x4022f8
mov ecx, eax
test ecx, ecx
je 0x402326
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40231f
push ebx
push eax
call fcn.004054ce
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40230d
call fcn.004054ce
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, 0x49c689
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40234a
push ebx
call fcn.004054ce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
call fcn.0040186c
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x402688
mov ebx, dword [ebp - 0x18]
call fcn.00401885
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40238c
push 4
call fcn.004054e6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40239f
push 1
call fcn.004054e6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Location:
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x4023da
mov eax, 0x49c689
push eax
push 4
mov ebx, 0x405940
call fcn.004054ec
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jle 0x4024e0
mov ebx, dword [ebp - 0x18]
call fcn.00401885
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x402417
push 4
call fcn.004054e6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40242a
push 1
call fcn.004054e6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0x80000301
push 0
push 1
mov ebx, 6
call fcn.00401951
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Location:
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x402475
mov eax, 0x49c689
push eax
push 6
mov ebx, 0x405e50
call fcn.004054ec
add esp, 0x4c
mov dword [ebp - 0x20], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40249e
mov eax, 0x49c689
push eax
push 1
mov ebx, 0x405e10
call fcn.004054ec
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4024c4
push ebx
call fcn.004054ce
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4024da
push ebx
call fcn.004054ce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
call fcn.00401885
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x4024fd
push 4
call fcn.004054e6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402510
push 1
call fcn.004054e6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Set_Cookie
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x40254b
mov eax, 0x49c689
push eax
push 4
mov ebx, 0x405940
call fcn.004054ec
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jle 0x402680
mov ebx, dword [ebp - 0x18]
call fcn.00401885
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x402588
push 4
call fcn.004054e6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40259b
push 1
call fcn.004054e6
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov eax, 0x49c87c
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, str.Set_Cookie:
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
call fcn.00402e1c
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4025ee
push ebx
call fcn.004054ce
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4025fe
push ebx
call fcn.004054ce
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x402611
mov eax, 0x49c689
push eax
push 1
mov ebx, 0x405e10
call fcn.004054ec
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402637
push ebx
call fcn.004054ce
add esp, 4
push 0x49c88a
push dword [ebp - 0x34]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.004012e6
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x402664
push ebx
call fcn.004054ce
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40267a
push ebx
call fcn.004054ce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x402361
add esp, 0xc
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
call fcn.004035c3
mov ebx, eax
test ebx, ebx
je 0x4026a5
push ebx
call fcn.004054ce
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push 1
push 1
push dword [ebp + 8]
call fcn.00402873
mov dword [ebp - 0x20], eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20]
push eax
call fcn.004049d5
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4026df
push ebx
call fcn.004054ce
add esp, 4
push 0x49c689
mov ebx, dword [ebp + 0x34]
push dword [ebx]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x402731
mov ebx, dword [ebp + 0x4c]
mov eax, dword [ebx]
test eax, eax
je 0x402718
push eax
mov ebx, eax
call fcn.0040127b
inc eax
push eax
call fcn.004054e0
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 0x40272b
push ebx
call fcn.004054ce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
push 0x10030
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x4078b0
call fcn.004054ec
add esp, 0x10
mov dword [ebp - 0x1c], esp
mov eax, 1
call fcn.004054f2
cmp dword [ebp - 0x1c], esp
je 0x40276c
push 6
call fcn.004054e6
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x402786
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004054e0
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40278b
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x4078b0
call fcn.004054ec
add esp, 0x10
call fcn.004054ce
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4027cd
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4027c9
imul eax, dword [ebx]
jmp 0x4027be
mov ecx, eax
test ecx, ecx
je 0x4027ec
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4027e5
push ebx
push eax
call fcn.004054ce
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4027d3
call fcn.004054ce
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x4068e0
call fcn.004054ec
add esp, 0x10
call fcn.004054ce
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402827
push ebx
call fcn.004054ce
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402845
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402841
imul eax, dword [ebx]
jmp 0x402836
mov ecx, eax
test ecx, ecx
je 0x402864
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40285d
push ebx
push eax
call fcn.004054ce
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40284b
call fcn.004054ce
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x54