Function at 0x4053d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x3f0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], bl
mov byte [esp + 0xac], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xad]
mov byte [esp + 0x88], bl
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x89]
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0xd1]
mov byte [esp + 0xd0], bl
mov byte [esp + 0xf4], bl
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0xf5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x4321d4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xf4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x432328], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xf4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [0x43232c], ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.jjmclient.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x12], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
and ecx, 3
lea eax, [esp + 0xf4]
rep movsb byte es:[edi], byte [esi]
push eax
mov byte [esp + 0x17], bl
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1f9]
mov byte [esp + 0x1f8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x2fc], bl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2fd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], bl
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
call fcn.004018f0
mov esi, eax
mov eax, edx
mov ecx, esi
mov edi, esi
sub ecx, 2
mov dword [esp + 0x18], edx
sbb eax, ebx
sub edi, 1
sbb edx, ebx
push edx
push edi
push eax
push ecx
call fcn.004128c0
mov ecx, dword [esp + 0x18]
push ecx
push esi
push edx
push eax
call fcn.004128c0
mov ecx, 4
call fcn.00413660
push edx
push eax
lea edx, [esp + 0x200]
push str._I64X
push edx
call fcn.0041269a
push 0x431c28
lea eax, [esp + 0x310]
push 0x104
push eax
push ebx
push str.HardIDCheck
push 0x42b9f4
call fcn.00406450
lea ecx, [esp + 0x324]
lea edx, [esp + 0x220]
push ecx
push edx
call fcn.0041abf0
add esp, 0x30
test eax, eax
je 0x4055c6
lea eax, [esp + 0x1f8]
test eax, eax
je 0x4055c6
push 0x42bd94
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3f0
ret
push 0x431c28
push 0x23
push 0x432330
push ebx
push str.PwdValue
push 0x42b9f4
call fcn.00406450
add esp, 0x18
push 0x432330
call ebp
push 0x432330
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40560f
push 0x42bd74
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3f0
ret
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x40]
mov esi, 0x432332
rep stosd dword es:[edi], eax
mov cx, word [0x432330]
lea edx, [esp + 0x40]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov word [esp + 0x12], cx
mov ecx, 8
lea edi, [esp + 0xac]
push 0x818ea29
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xb0]
push edx
push eax
movsb byte es:[edi], byte [esi]
call fcn.00406e60
lea ecx, [esp + 0x1e]
push ecx
call fcn.00413598
add esp, 0x10
lea edx, [esp + 0x40]
mov word [0x432354], ax
push edx
call ebp
lea eax, [esp + 0x40]
push eax
call fcn.00405840
add esp, 4
lea ecx, [esp + 0xf4]
mov dword [0x432328], eax
mov dword [0x43232c], edx
push ecx
call ebp
push 0x431c28
lea edx, [esp + 0x8c]
push 0x104
push edx
push ebx
push str.companyID
push 0x42b9f4
call fcn.00406450
add esp, 0x18
lea eax, [esp + 0x88]
push eax
call ebp
lea ecx, [esp + 0xd0]
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.00406d60
lea edi, [esp + 0xd8]
or ecx, 0xffffffff
xor eax, eax
push 0x431c28
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, 0x432358
push str.departmentID
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x42b9f4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00406570
push 0x431c28
lea ecx, [esp + 0x80]
push 0x21
push ecx
push str.3F2974837651D3D1C45D1E078D48649E
push str.PowerValue
push str.Priority
mov dword [0x43237c], eax
call fcn.00406450
lea edx, [esp + 0x4c]
push 0x818ea29
lea eax, [esp + 0x98]
push edx
push eax
call fcn.00406e60
add esp, 0x3c
push 0x42bd10
call ebp
lea ecx, [esp + 0x64]
push ecx
call ebp
lea edx, [esp + 0x1c]
push edx
call ebp
movsx eax, byte [esp + 0x26]
push eax
push str.m_Priority_temp_10_____ld
push 0x431b24
call fcn.0041269a
add esp, 0xc
push 0x431b24
call ebp
movsx eax, byte [esp + 0x26]
sub eax, 0x30
cmp eax, 4
mov dword [0x432380], eax
jbe 0x4057a0
mov dword [0x432380], ebx
push 0x431c28
push ebx
push str.PartOpenValue
push str.RULETOTOAL
call fcn.00406570
mov ecx, dword [0x432380]
mov edx, dword [0x43237c]
neg eax
sbb eax, eax
push ecx
mov ecx, dword [0x432328]
inc eax
mov dword [0x42bdc8], eax
mov eax, dword [0x43232c]
push edx
push 0x432358
push eax
push ecx
push str.UserID___I64x_g_companyID_is__s_g_departmentID_is__ld_g_powerValue_is__ld
push 0x431b24
call fcn.0041269a
add esp, 0x2c
push 0x431b24
call ebp
mov edx, dword [0x432328]
mov eax, dword [0x43232c]
or edx, eax
je 0x405828
cmp dword [0x432380], 4
ja 0x405828
cmp dword [0x43237c], ebx
je 0x405828
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3f0
ret
push 0x42bc70
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3f0
ret