Function at 0x401d20
Capabilities:
Get hostname
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x420287
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43845c]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x2c]
push eax
lea edi, [esi + 0x200]
mov ebx, 0x100
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push edi
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
push 0x428188
lea ecx, [esp + 0x1c]
mov dword [esp + 0x118], 0
call dword [sym.imp.mfc90.dll_Ordinal_945]
lea ecx, [esp + 0x2c]
push ecx
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004039d0
push str.:HKP2CellDB
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x12c], 1
call fcn.004039d0
add esp, 0x18
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x118], 2
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x24]
mov byte [esp + 0x114], 0
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea edx, [esi + 0x198]
push edx
lea ecx, [esp + 0x24]
call fcn.00413580
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
cmp dword [esi + 0xac], 0
mov bl, 4
mov byte [esp + 0x114], bl
je 0x401e4c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
call fcn.00413f80
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x118], 5
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x24]
jmp 0x401ea5
push str.CellDBLibs_
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00413f80
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x120], 6
call fcn.00403940
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x118], 7
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x114], bl
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.LibManagerDBPI.dll_public:_long_int___thiscall_CLibSchemePartition::ReservePartition_char_const___char_const__]
push ecx
mov ecx, dword [esi + 0x1fc]
push edx
call edi
cmp eax, 0x40000
jne 0x401f82
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esi + 0x1fc]
mov byte [esp + 0x11c], 8
call dword [sym.imp.LibManagerDBPI.dll_public:_long_int___thiscall_CLibSchemePartition::GetPartitionReservation_char_const___class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____]
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
je 0x401f6f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edi, [esi + 0x1c4]
push str.The_partition__s_in_the_Library_Manager_Catalog_is_already_reserved_by__s.
push edi
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
push 0
push 0
push 1
push edi
mov ecx, esi
call fcn.004104f0
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, 0x40000
jmp 0x402348
lea ecx, [esp + 0x1c]
mov byte [esp + 0x114], bl
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x402001
cmp eax, 0x40003
jne 0x402001
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x1fc]
push 0
push edx
call dword [sym.imp.LibManagerDBPI.dll_public:_long_int___thiscall_CLibSchemePartition::AddPartition_char_const___int_]
mov ebx, eax
test ebx, ebx
je 0x401fef
mov eax, dword [esp + 0x14]
push eax
lea edi, [esi + 0x1c4]
push str.Unable_to_add_the_partition__s_to_the_Library_Manager_Catalog.
push edi
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
push 0
push 0
push 1
push edi
mov ecx, esi
call fcn.004104f0
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, ebx
jmp 0x402348
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x1fc]
push edx
call edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
call fcn.00413f80
mov eax, dword [eax]
mov ecx, dword [esi + 0x1f8]
push eax
push 0
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], 9
call dword [sym.imp.LibManagerDBPI.dll_public:_void___thiscall_CLibCell::constructor_class_CLibServer___char_const___char_const__]
lea ecx, [esp + 0x24]
mov byte [esp + 0x114], 0xb
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x34]
call dword [sym.imp.LibManagerDBPI.dll_public:_void___thiscall_CLibBase::SetWorkingUserName_char_const__]
cmp dword [esi + 0x190], 0
je 0x4020f5
lea ecx, [esp + 0x40]
call sub.mfc90.dll_Ordinal_580
mov bl, 0xc
lea ecx, [esp + 0x54]
mov byte [esp + 0x114], bl
call sub.mfc90.dll_Ordinal_580
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x11c], 0xd
call dword [sym.imp.LibManagerDBPI.dll_public:_long_int___thiscall_CLibCell::GetCellsInPartition_class_CStringArray___char_const__]
mov eax, dword [esp + 0x48]
xor edi, edi
test eax, eax
jle 0x4020d4
lea esp, [esp]
test edi, edi
jl 0x402278
cmp edi, eax
jge 0x402278
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + edi*4]
push 1
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.004019a0
mov eax, dword [esp + 0x48]
inc edi
cmp edi, eax
jl 0x4020a0
lea ecx, [esp + 0x54]
mov byte [esp + 0x114], bl
call sub.mfc90.dll_Ordinal_781
lea ecx, [esp + 0x40]
mov byte [esp + 0x114], 0xb
call sub.mfc90.dll_Ordinal_781
cmp dword [esi + 0x1b0], 0
je 0x4021cd
lea ecx, [esp + 0x68]
call dword [sym.imp.CELLDBPI.dll_public:_void___thiscall_CCellDBCell::constructor_void_]
mov ebp, dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDB::GetNextCell_class_CCellDBCell___int__int_]
push 6
push 1
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esi + 0xa4]
call ebp
test eax, eax
jne 0x4021cd
mov ebx, dword [sym.imp.LibManagerDBPI.dll_public:_long_int___thiscall_CLibCell::GetPartitionNames_class_CStringArray___char_const__]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x6c]
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDBCell::GetName_char_const___]
test eax, eax
jne 0x4021b4
lea ecx, [esp + 0x40]
call sub.mfc90.dll_Ordinal_580
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x11c], 0xe
call ebx
mov eax, dword [esp + 0x48]
xor edi, edi
test eax, eax
jle 0x4021a3
test edi, edi
jl 0x402278
cmp edi, eax
jge 0x402278
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
push 1
push ecx
lea eax, [edx + edi*4]
push eax
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.004019a0
mov eax, dword [esp + 0x48]
inc edi
cmp edi, eax
jl 0x40216f
lea ecx, [esp + 0x40]
mov byte [esp + 0x114], 0xb
call sub.mfc90.dll_Ordinal_781
mov ecx, dword [esi + 0xa4]
push 6
push 0
lea eax, [esp + 0x70]
push eax
call ebp
test eax, eax
je 0x402131
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_316]
push 0x3ff
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0xa4]
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x120], 0xf
call dword [sym.imp.CELLDBPI.dll_public:_int___thiscall_CCellDB::UpdateLMC_class_CLibCell___class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______int_]
mov edi, eax
test edi, edi
je 0x40227d
cmp dword [esi + 0x1bc], 0
jne 0x402217
mov eax, dword [esp + 0x28]
push 0
push 0x30
push eax
call sub.mfc90.dll_Ordinal_1183
push 0
push 0
push 1
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.004104f0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x1fc]
push edx
push eax
call dword [sym.imp.LibManagerDBPI.dll_public:_long_int___thiscall_CLibSchemePartition::UnReservePartition_char_const___char_const__]
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x30]
call dword [sym.imp.LibManagerDBPI.dll_public:_void___thiscall_CLibCell::destructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, edi
jmp 0x402348
call sub.mfc90.dll_Ordinal_1252
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x1fc]
push edx
call dword [sym.imp.LibManagerDBPI.dll_public:_long_int___thiscall_CLibSchemePartition::UnReservePartition_char_const___char_const__]
mov ecx, dword [esi + 0x1bc]
mov ebx, dword [esp + 0x11c]
mov eax, dword [ebx]
push 0
push ecx
mov ecx, dword [esi + 0x1f8]
push eax
call dword [sym.imp.LibManagerDBPI.dll_public:_long_int___thiscall_CLibServer::Save_char_const___int__int_]
mov ebp, eax
test ebp, ebp
je 0x402314
mov edx, dword [ebx]
push edx
lea edi, [esi + 0x1c4]
push str.Unable_to_save_the_Library_Manager_Catalog_file__s
push edi
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
push 0
push 0
push 1
push edi
mov ecx, esi
call fcn.004104f0
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x30]
call dword [sym.imp.LibManagerDBPI.dll_public:_void___thiscall_CLibCell::destructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, ebp
jmp 0x402348
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x30]
call dword [sym.imp.LibManagerDBPI.dll_public:_void___thiscall_CLibCell::destructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4