Function at 0x407da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48af40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea eax, [esi + 0x28]
push edi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], edi
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CSingleLock::Lock
mov ecx, dword [esi + 0x20]
mov ebx, dword [esp + 0x34]
push ecx
mov ecx, dword [esi + 0x24]
push ebx
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CGroupInfoDB::ChangeUserMapNum_struct_GMIS___int_]
cmp eax, edi
mov dword [esp + 0x10], eax
jg 0x407e4f
cmp ebx, edi
je 0x407e11
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CSingleLock::Unlock
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CSingleLock::Unlock
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00489b20
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
push ebp
push eax
lea edx, [esp + 0x14]
push 0x49b020
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push eax
call dword [sym.imp.Staff2.dll_public:_void____thiscall_CExMapStringToPtr::Find_char_const__]
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x407f0e
push 0x7c
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x18]
mov ebp, eax
mov ecx, 0x1f
xor eax, eax
mov edi, ebp
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x24]
push edx
push ebp
call dword [sym.imp.rmDB.dll_public:_int___thiscall_CGroupInfoDB::GetAllUserInfo_void___int__int_]
mov eax, dword [esp + 0x10]
push ebp
push eax
mov ecx, esi
call dword [sym.imp.Staff2.dll_public:_int___thiscall_CExMapStringToPtr::Add_char_const___void__]
xor edi, edi
lea edx, [ebp + 9]
jmp 0x407ebf
mov ebx, dword [esp + 0x38]
lea esi, [ebx + 1]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x407ee8
test cl, cl
je 0x407ee4
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x407ee8
add eax, 2
add esi, 2
test cl, cl
jne 0x407ec4
xor eax, eax
jmp 0x407eed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407efc
inc edi
add edx, 0x18
cmp edi, 5
jl 0x407ebb
jmp 0x407f5e
mov edx, dword [esp + 0x38]
lea ecx, [edi + edi*2]
mov ax, word [edx + 0x12]
mov word [ebp + ecx*8 + 0x1a], ax
jmp 0x407f5e
lea ebp, [eax + 9]
lea esi, [ebx + 1]
mov ecx, ebp
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x407f3a
test dl, dl
je 0x407f36
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x407f3a
add ecx, 2
add esi, 2
test dl, dl
jne 0x407f16
xor ecx, ecx
jmp 0x407f3f
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x407f4e
inc edi
add ebp, 0x18
cmp edi, 5
jl 0x407f11
jmp 0x407f5e
mov eax, dword [esp + 0x18]
mov dx, word [ebx + 0x12]
lea ecx, [edi + edi*2]
mov word [eax + ecx*8 + 0x1a], dx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CSingleLock::Unlock
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CSingleLock::Unlock
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.00489b20
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4