Function at 0x498100
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5ac846
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
call fcn.00498470
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x30], 0
je 0x498151
push str.XGSP
mov ecx, eax
call fcn.004dbdb0
mov esi, eax
jmp 0x498153
xor esi, esi
push 3
push 3
or ebp, 0xffffffff
push 1
push str.SELECT__FROM__role_list_
mov ecx, esi
mov dword [esp + 0x40], ebp
call fcn.004dbe40
test eax, eax
jne 0x498261
test esi, esi
je 0x498180
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [0x637770]
test eax, eax
je 0x4981e9
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4981e9
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push str._role_ins_
push 0x603774
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x637770]
push str.runtime
push 0x603760
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb4c0
mov eax, dword [0x637770]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._role_ins_
call sub.MFC42.DLL_CString::CString_3
push ecx
mov dword [esp + 0x38], 1
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x603774
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x3c], 2
mov ecx, esp
mov dword [esp + 0x2c], esp
push str..dbs.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x40], 3
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x60375c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63234c]
mov dword [esp + 0x40], ebp
call fcn.00458dc0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x498338
lea ebx, [edi + 0x50]
jmp 0x498278
or ebp, 0xffffffff
push 0x10
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
mov dword [esp + 0x30], 4
je 0x4982b5
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [edi + 8]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString_1
mov dword [edi + 4], 0
mov byte [edi + 0xc], 0
jmp 0x4982b7
xor edi, edi
mov dword [esp + 0x30], ebp
mov ebp, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
lea eax, [ebp + 1]
push eax
call fcn.00582dc0
mov ecx, dword [ebx + 4]
lea edx, [edi + 4]
push edx
push 0x603170
mov dword [ecx + ebp*4], edi
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
push edi
push str.role_name
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea eax, [edi + 8]
mov ecx, esi
push eax
push str.role_instruction
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x14]
push ecx
push str.pnr_analysis_enable
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov edx, dword [esp + 0x14]
mov ecx, esi
test edx, edx
setne dl
mov byte [edi + 0xc], dl
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x498275
mov edi, dword [esp + 0x18]
or ebp, 0xffffffff
test esi, esi
je 0x498344
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [edi + 0x58]
test eax, eax
jle 0x498456
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 0x58]
lea ecx, [esp + 0x10]
push eax
mov ebx, 6
push 0x616f78
push ecx
mov dword [esp + 0x3c], ebx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x637770]
add esp, 0xc
test eax, eax
je 0x4983e2
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4983e2
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea ecx, [esp + 0x14]
call fcn.0041a900
push eax
push 0x60b5c0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [0x637770]
push str.runtime
push 0x603760
mov eax, dword [edx + 0x44]
push eax
call fcn.004eb4c0
mov ecx, dword [0x637770]
add esp, 0x1c
add ecx, 0x248
mov edx, dword [ecx]
call dword [edx + 0x1c]
lea ecx, [esp + 0x10]
call fcn.0041a900
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x38], 7
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x60b5c0
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x3c], 8
mov ecx, esp
mov dword [esp + 0x28], esp
push str..scc.
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0x40], 9
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x60375c
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63234c]
mov byte [esp + 0x40], bl
call fcn.00458dc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret