Function at 0x40b840
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x5b6cc8
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 0x40b8b0
cmp dword [esp + 0x10], ebx
jle 0x40b8b0
cmp dword [esi + 4], ebx
je 0x40b8b0
push str.DTImport
call fcn.0044fa0c
mov ecx, dword [esi + 4]
push eax
push str.DTImport
push ecx
call fcn.00450b64
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.0059e281
add esp, 4
mov ecx, ebp
push edi
call fcn.0040a2f0
lea ecx, [esp + 0x10]
call fcn.0047ab70
push str.AGENTIDENTIFYITEM3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], ebx
call fcn.00468580
push str.AgentIdentifyConfig
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.00468580
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.0040bd70
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.0040a470
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 1
call fcn.00468df0
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call fcn.00468df0
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], ebx
call fcn.0047aca0
lea ecx, [esp + 0x10]
call fcn.0047ab70
push str.AGENTINFOITEM_2
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 3
call fcn.00468580
push str.AgentIdentifyConfig
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 4
call fcn.00468580
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.0040bd70
lea eax, [ebp + 0x64]
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.0044746e
lea esi, [ebp + 0x84]
mov byte [esp + 0x50], 6
mov ecx, esi
call fcn.0047b040
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0047b0c0
mov byte [esp + 0x50], 5
lea ecx, [esp + 0x28]
call fcn.004474aa
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 4
call fcn.00468df0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 3
call fcn.00468df0
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], ebx
call fcn.0047aca0
lea ecx, [esp + 0x10]
call fcn.0047ab70
push 0x611878
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 7
call fcn.00468580
push str.AgentConfig
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 8
call fcn.00468580
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.0040bd70
lea ecx, [esp + 0x34]
call fcn.0059c526
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 0xa
call fcn.0047ad40
push eax
lea ecx, [esp + 0x3c]
call fcn.0059c586
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x10]
call fcn.0047ad40
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0047b460
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.0044746e
lea esi, [ebp + 0xa8]
push ebx
push 0
mov ecx, esi
mov byte [esp + 0x58], 0xb
call fcn.0059c586
lea edx, [esp + 0x34]
mov ecx, esi
push edx
call fcn.0059c67d
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0xa
call fcn.004474aa
lea ecx, [esp + 0x10]
call fcn.0047ad40
push eax
push str.CImportAuthMgr::RefreshAgentInfo_arrData_size_0x_x_
push str.CheckModule
push 0xf
push 0x642404
call fcn.004439a0
mov eax, dword [esp + 0x6c]
add esp, 0x14
test eax, eax
je 0x40bb0e
mov ecx, ebp
call fcn.0040c630
mov esi, eax
test esi, esi
jne 0x40bb43
lea eax, [esp + 0x34]
mov ecx, ebp
push eax
call fcn.0040bec0
test eax, eax
je 0x40bd47
mov esi, dword [eax + 4]
push esi
push str.CImportAuthMgr::RefreshAgentInfo_PID_0x_x_
push str.CheckModule
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x14
test esi, esi
je 0x40bb4b
push esi
mov ecx, ebp
call fcn.0040a1f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 9
call fcn.0059c559
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 8
call fcn.00468df0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 7
call fcn.00468df0
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], ebx
call fcn.0047aca0
lea ecx, [esp + 0x58]
call fcn.0047ab70
push str.SDASN2
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0xc
call fcn.00468580
push str.AgentConfig
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0xd
call fcn.00468580
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.0040bd70
lea ecx, [esp + 0x34]
call fcn.0059c526
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0xf
call fcn.0047ad40
push eax
lea ecx, [esp + 0x3c]
call fcn.0059c586
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x58]
call fcn.0047ad40
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0047b460
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 0x642404
call fcn.004439a0
add esp, 0x14
lea ecx, [esp + 0x34]
push 0
push ecx
mov ecx, 0x639d50
call fcn.0042b060
mov edx, dword [esp + 0x3c]
push edx
push str.CImportAuthMgr::RefreshAgentInfo_size__lu__after_decrypt
push str.CheckAsn
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x14
push 1
lea eax, [ebp + 0xbc]
lea ecx, [esp + 0x2c]
push eax
call fcn.0044746e
lea esi, [ebp + 0xdc]
push ebx
push 0
mov ecx, esi
mov byte [esp + 0x58], 0x10
call fcn.0059c586
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0059c67d
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 0xf
call fcn.004474aa
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 0xe
call fcn.0059c559
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0xd
call fcn.00468df0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0xc
call fcn.00468df0
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], ebx
call fcn.0047aca0
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.0040c140
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.0040a350
mov ecx, ebp
call fcn.0040c2b0
push str.GetServerTimeFromHardDisk_ret
push str.CheckModule
push 0xf
push 0x642404
call fcn.004439a0
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 0x642404
call fcn.004439a0
add esp, 0x10
jmp 0x40bb4b