Function at 0x40c830
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x5d4d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
mov ebp, ecx
push eax
mov edi, 1
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, ebx
je 0x40c8a0
cmp dword [esp + 0x10], ebx
jle 0x40c8a0
cmp dword [esi + 4], ebx
je 0x40c8a0
push str.DTImport
call fcn.00453b6c
mov ecx, dword [esi + 4]
push eax
push str.DTImport
push ecx
call fcn.00454d34
mov edi, eax
add esp, 0x10
neg edi
sbb edi, edi
neg edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call fcn.005bc175
add esp, 4
mov ecx, ebp
push edi
call fcn.0040a700
lea ecx, [esp + 0x10]
call fcn.0047ecd0
push str.AGENTIDENTIFYITEM3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], ebx
call fcn.0046c6e0
push str.AgentIdentifyConfig
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.0046c6e0
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x5c], 2
call fcn.0040cd60
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.0040a880
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 1
call fcn.0046cf50
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call fcn.0046cf50
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], ebx
call fcn.0047ee00
lea ecx, [esp + 0x10]
call fcn.0047ecd0
push str.AGENTINFOITEM_2
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 3
call fcn.0046c6e0
push str.AgentIdentifyConfig
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 4
call fcn.0046c6e0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x5c], 5
call fcn.0040cd60
lea eax, [ebp + 0x64]
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.0044b5ce
lea esi, [ebp + 0x84]
mov byte [esp + 0x50], 6
mov ecx, esi
call fcn.0047f1a0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0047f220
mov byte [esp + 0x50], 5
lea ecx, [esp + 0x28]
call fcn.0044b60a
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 4
call fcn.0046cf50
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 3
call fcn.0046cf50
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], ebx
call fcn.0047ee00
lea ecx, [esp + 0x10]
call fcn.0047ecd0
push 0x6359e0
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 7
call fcn.0046c6e0
push str.AgentConfig
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 8
call fcn.0046c6e0
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x5c], 9
call fcn.0040cd60
lea ecx, [esp + 0x34]
call fcn.005ba41a
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 0xa
call fcn.0047eea0
push eax
lea ecx, [esp + 0x3c]
call fcn.005ba47a
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x10]
call fcn.0047eea0
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0047f5c0
mov edx, esi
mov esi, eax
push 1
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0x88]
push ecx
lea ecx, [esp + 0x30]
call fcn.0044b5ce
lea esi, [ebp + 0xa8]
push ebx
push 0
mov ecx, esi
mov byte [esp + 0x58], 0xb
call fcn.005ba47a
lea edx, [esp + 0x34]
mov ecx, esi
push edx
call fcn.005ba571
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0xa
call fcn.0044b60a
lea ecx, [esp + 0x10]
call fcn.0047eea0
push eax
push str.CImportAuthMgr::RefreshAgentInfo_arrData_size_0x_x_
push str.CheckModule
push 0xf
push 0x667744
call fcn.00447b00
mov eax, dword [esp + 0x6c]
add esp, 0x14
test eax, eax
je 0x40cafe
mov ecx, ebp
call fcn.0040d620
mov esi, eax
test esi, esi
jne 0x40cb33
lea eax, [esp + 0x34]
mov ecx, ebp
push eax
call fcn.0040ceb0
test eax, eax
je 0x40cd37
mov esi, dword [eax + 4]
push esi
push str.CImportAuthMgr::RefreshAgentInfo_PID_0x_x_
push str.CheckModule
push 0xf
push 0x667744
call fcn.00447b00
add esp, 0x14
test esi, esi
je 0x40cb3b
push esi
mov ecx, ebp
call fcn.0040a600
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 9
call fcn.005ba44d
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 8
call fcn.0046cf50
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 7
call fcn.0046cf50
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], ebx
call fcn.0047ee00
lea ecx, [esp + 0x58]
call fcn.0047ecd0
push str.SDASN2
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0xc
call fcn.0046c6e0
push str.AgentConfig
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0xd
call fcn.0046c6e0
lea ecx, [esp + 0x58]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x5c], 0xe
call fcn.0040cd60
lea ecx, [esp + 0x34]
call fcn.005ba41a
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0xf
call fcn.0047eea0
push eax
lea ecx, [esp + 0x3c]
call fcn.005ba47a
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x58]
call fcn.0047eea0
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0047f5c0
mov ecx, esi
mov esi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x3c]
push eax
push str.CImportAuthMgr::RefreshAgentInfo_size__lu__before_decrypt
push str.CheckAsn
push 0xf
push 0x667744
call fcn.00447b00
add esp, 0x14
lea ecx, [esp + 0x34]
push 0
push ecx
mov ecx, 0x65f090
call fcn.0042efa0
mov edx, dword [esp + 0x3c]
push edx
push str.CImportAuthMgr::RefreshAgentInfo_size__lu__after_decrypt
push str.CheckAsn
push 0xf
push 0x667744
call fcn.00447b00
add esp, 0x14
push 1
lea eax, [ebp + 0xbc]
lea ecx, [esp + 0x2c]
push eax
call fcn.0044b5ce
lea esi, [ebp + 0xdc]
push ebx
push 0
mov ecx, esi
mov byte [esp + 0x58], 0x10
call fcn.005ba47a
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.005ba571
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0xf
call fcn.0044b60a
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 0xe
call fcn.005ba44d
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0xd
call fcn.0046cf50
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0xc
call fcn.0046cf50
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], ebx
call fcn.0047ee00
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.0040d130
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.0040a760
mov ecx, ebp
call fcn.0040d2a0
push str.GetServerTimeFromHardDisk_ret
push str.CheckModule
push 0xf
push 0x667744
call fcn.00447b00
mov ecx, dword [esp + 0x58]
add esp, 0x10
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
push str.CImportAuthMgr::RefreshAgentInfo_PID_Fail
push str.CheckModule
push 0xf
push 0x667744
call fcn.00447b00
add esp, 0x10
jmp 0x40cb3b