Function at 0x40c7a0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x5c5808
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 0x40c810
cmp dword [esp + 0x10], ebx
jle 0x40c810
cmp dword [esi + 4], ebx
je 0x40c810
push str.DTImport
call fcn.00451ffc
mov ecx, dword [esi + 4]
push eax
push str.DTImport
push ecx
call fcn.004531c4
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.005acc35
add esp, 4
mov ecx, ebp
push edi
call fcn.0040a670
lea ecx, [esp + 0x10]
call fcn.0047d160
push str.AGENTIDENTIFYITEM3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], ebx
call fcn.0046ab70
push str.AgentIdentifyConfig
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.0046ab70
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.0040ccd0
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.0040a7f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 1
call fcn.0046b3e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call fcn.0046b3e0
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], ebx
call fcn.0047d290
lea ecx, [esp + 0x10]
call fcn.0047d160
push str.AGENTINFOITEM_2
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 3
call fcn.0046ab70
push str.AgentIdentifyConfig
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 4
call fcn.0046ab70
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.0040ccd0
lea eax, [ebp + 0x64]
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.00449a5e
lea esi, [ebp + 0x84]
mov byte [esp + 0x50], 6
mov ecx, esi
call fcn.0047d630
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0047d6b0
mov byte [esp + 0x50], 5
lea ecx, [esp + 0x28]
call fcn.00449a9a
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 4
call fcn.0046b3e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 3
call fcn.0046b3e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], ebx
call fcn.0047d290
lea ecx, [esp + 0x10]
call fcn.0047d160
push 0x6239e0
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 7
call fcn.0046ab70
push str.AgentConfig
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 8
call fcn.0046ab70
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.0040ccd0
lea ecx, [esp + 0x34]
call fcn.005aaeda
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 0xa
call fcn.0047d330
push eax
lea ecx, [esp + 0x3c]
call fcn.005aaf3a
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x10]
call fcn.0047d330
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0047da50
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.00449a5e
lea esi, [ebp + 0xa8]
push ebx
push 0
mov ecx, esi
mov byte [esp + 0x58], 0xb
call fcn.005aaf3a
lea edx, [esp + 0x34]
mov ecx, esi
push edx
call fcn.005ab031
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0xa
call fcn.00449a9a
lea ecx, [esp + 0x10]
call fcn.0047d330
push eax
push str.CImportAuthMgr::RefreshAgentInfo_arrData_size_0x_x_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
mov eax, dword [esp + 0x6c]
add esp, 0x14
test eax, eax
je 0x40ca6e
mov ecx, ebp
call fcn.0040d590
mov esi, eax
test esi, esi
jne 0x40caa3
lea eax, [esp + 0x34]
mov ecx, ebp
push eax
call fcn.0040ce20
test eax, eax
je 0x40cca7
mov esi, dword [eax + 4]
push esi
push str.CImportAuthMgr::RefreshAgentInfo_PID_0x_x_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x14
test esi, esi
je 0x40caab
push esi
mov ecx, ebp
call fcn.0040a570
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 9
call fcn.005aaf0d
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 8
call fcn.0046b3e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 7
call fcn.0046b3e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], ebx
call fcn.0047d290
lea ecx, [esp + 0x58]
call fcn.0047d160
push str.SDASN2
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0xc
call fcn.0046ab70
push str.AgentConfig
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0xd
call fcn.0046ab70
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.0040ccd0
lea ecx, [esp + 0x34]
call fcn.005aaeda
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0xf
call fcn.0047d330
push eax
lea ecx, [esp + 0x3c]
call fcn.005aaf3a
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x58]
call fcn.0047d330
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0047da50
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 0x654a04
call fcn.00445f90
add esp, 0x14
lea ecx, [esp + 0x34]
push 0
push ecx
mov ecx, 0x64c350
call fcn.0042d500
mov edx, dword [esp + 0x3c]
push edx
push str.CImportAuthMgr::RefreshAgentInfo_size__lu__after_decrypt
push str.CheckAsn
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x14
push 1
lea eax, [ebp + 0xbc]
lea ecx, [esp + 0x2c]
push eax
call fcn.00449a5e
lea esi, [ebp + 0xdc]
push ebx
push 0
mov ecx, esi
mov byte [esp + 0x58], 0x10
call fcn.005aaf3a
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.005ab031
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0xf
call fcn.00449a9a
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 0xe
call fcn.005aaf0d
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0xd
call fcn.0046b3e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0xc
call fcn.0046b3e0
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], ebx
call fcn.0047d290
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.0040d0a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.0040a6d0
mov ecx, ebp
call fcn.0040d210
push str.GetServerTimeFromHardDisk_ret
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
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 0x654a04
call fcn.00445f90
add esp, 0x10
jmp 0x40caab