joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e1f0
Capabilities:
Access peb ldr_data
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5a52b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push str..dbibsp.mdb
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
push str..dbibsp_install.mdb
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString_3
mov ebx, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CFileFind::FindFile
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x44e28c
mov ecx, dword [esp + 8]
push 0
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x44e349
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push edx
push eax
call esi
mov dword [esp + 0x40], 2
push str..dbpnr_rec.mdb
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
push str..dbpnr_rec_install.mdb
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 6
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x44e2ee
mov edx, dword [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x44e2ee
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebx
push eax
push ecx
call esi
mov dword [esp + 0x40], 6
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], bl
call fcn.0059465a
lea ecx, [esp + 8]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, bl
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], bl
call fcn.0059465a
lea ecx, [esp + 8]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x38]
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x454ae0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5a6267
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
lea ecx, [esi + 0x18]
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x1c]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x20]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x24]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString_1
push 0x631fbc
mov ecx, edi
mov byte [esp + 0x28], 4
mov dword [esi], 0x5cd194
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x10]
mov dword [esi + 8], ebx
push eax
mov dword [esi + 0xc], ebx
call sub.MFC42.DLL_CTime::GetTickCount
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x14]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
push 0xffffffffffffffff
push ebx
push ebx
push ebx
add eax, 0x76c
push ebp
push edi
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CTime::CTime_1
mov ecx, dword [eax]
push ebx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x14]
inc edi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
push 0xffffffffffffffff
push 0x3b
push 0x3b
push 0x17
add eax, 0x76c
push ebp
push edi
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CTime::CTime_1
mov edx, dword [eax]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x14], edx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x44], 1
mov byte [esi + 0x45], 1
mov byte [esi + 0x46], bl
mov byte [esi + 0x47], bl
mov byte [esi + 0x48], 1
mov byte [esi + 0x4b], bl
mov byte [esi + 0x4a], bl
mov byte [esi + 0x49], bl
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x454ce0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5a62d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push str.SELECT__FROM__pnr_analysis_config__WHERE_template_name_s
push ecx
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
mov ecx, dword [0x637760]
add esp, 0xc
push ebx
push ebx
push edx
push str.XGSP
call fcn.0058fec0
mov esi, eax
cmp esi, ebx
je 0x454def
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x454de1
lea eax, [edi + 4]
mov ecx, esi
push eax
push str.template_name
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
push ecx
push str.param
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.00455040
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
push 0x40
push 0x6030cc
push 0x610288
jmp 0x454dfb
push 0x40
push 0x6030cc
push 0x610270
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4
Function at 0x454e40
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5a6318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.00455640
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x28]
lea edx, [esp + 8]
push ecx
push str.SELECT__FROM__pnr_analysis_config__WHERE_template_name_s
push edx
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
mov ecx, dword [0x637760]
add esp, 0xc
push ebx
push ebx
push eax
push str.XGSP
call fcn.0058fec0
mov esi, eax
cmp esi, ebx
je 0x454f81
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
je 0x454ecf
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsBOF_void_
test eax, eax
jne 0x454f81
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x18]
push str.UPDATE__pnr_analysis_config__set_param_s_WHERE_template_name_s
push eax
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebx
push ebx
push ecx
mov ecx, dword [0x637760]
push str.XGSP
call fcn.0058fec0
cmp eax, ebx
jne 0x454f76
push 0x40
push 0x6030cc
push 0x60331c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [esp + 0x20], 2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov byte [esp + 0x20], 2
lea ecx, [esp + 0x10]
jmp 0x454ff0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.INSERT_INTO__pnr_analysis_config__template_name__param__VALUES__s___s_
push ecx
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x24]
mov ecx, dword [0x637760]
add esp, 0x10
push ebx
push ebx
push edx
push str.XGSP
call fcn.0058fec0
cmp eax, ebx
jne 0x454fe7
push 0x40
push 0x6030cc
push 0x60331c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [esp + 0x20], 2
lea ecx, [esp + 0x14]
jmp 0x454f30
mov byte [esp + 0x20], 2
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x45b360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a6f0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
mov dword [esp + 0xc], esi
call sub.MFC42.DLL_CSyncObject::CSyncObject
lea eax, [esi + 8]
mov dword [esi], 0x5cdd24
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x2c]
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 6
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov byte [esi + 0x38], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x460590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a74d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x3c]
mov cl, byte [eax]
lea esi, [eax + 1]
cmp cl, 0x23
je 0x4605d3
mov esi, eax
lea ecx, [esp + 0x10]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
push 0x2d
push 0x5f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::Replace_1
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 4]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 8]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [ebx + 0x78]
mov eax, dword [eax + 0x10]
inc eax
mov ecx, dword [edx + 0x58]
mov edx, dword [esp + 0x14]
push ecx
push edx
push esi
push edi
push ebp
push eax
lea eax, [esp + 0x30]
push str.C_REM__02d_02d__02d_02d__s__s_r
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
add esp, 0x20
push ecx
push edx
push 0x60e6ec
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x4634b0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
mov esi, ecx
push 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x463500
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 4], eax
test eax, eax
setne cl
pop edi
mov al, cl
pop esi
pop ecx
ret
Function at 0x465510
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5a796b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 8]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 7
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 8
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 9
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x2c], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x465d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a7aee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString_1
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 6
call sub.MFC42.DLL_CString::CString_1
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x5cdd70
mov dword [esi + 0x44], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x54], 0x5cdd84
mov dword [esi + 0x58], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], edi
lea ecx, [esi + 0x68]
mov byte [esp + 0x14], 9
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 0x70], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x485770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5aa610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx + 4]
push str.______________________________________________r
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
xor ebx, ebx
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0x30], ebx
call dword [eax + 0x90]
mov eax, dword [0x637760]
cmp eax, ebx
je 0x48581b
cmp byte [eax + 0x40], bl
je 0x48581b
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x78]
push edx
push str._RX_
push ebx
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637760]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb100
mov eax, dword [0x637760]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c4d0
mov eax, dword [eax + 0xd0]
cmp byte [eax], bl
je 0x485867
mov ecx, dword [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x34], bl
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebx
je 0x485957
mov ecx, dword [eax + 0x50]
xor ebp, ebp
cmp ecx, ebx
jle 0x485957
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
cmp esi, ebx
je 0x48594b
cmp byte [esi + 0x88], bl
je 0x48594b
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
cmp byte [edx + 2], bl
je 0x485946
mov eax, dword [esi + 0x84]
cmp dword [eax - 8], ebx
je 0x485946
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
mov byte [esp + 0x28], 2
cmp dword [edx - 8], ebx
je 0x485939
cmp byte [esi + 0x80], bl
jne 0x485939
mov eax, dword [edi + 0x78]
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x485939
mov ecx, dword [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x34], 2
call fcn.00402490
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x485881
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 4
Function at 0x49c400
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5acca3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0
push eax
call fcn.0049c920
mov ebp, eax
test ebp, ebp
jne 0x49c456
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
mov al, byte [ebp + 0x10]
test al, al
jne 0x49c482
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
push ebx
push esi
lea ecx, [esp + 0x28]
push edi
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x30]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
push edi
add eax, 0x76c
push esi
push eax
lea edx, [esp + 0x20]
push str._04d__02d__02d_00:00:00
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x18]
mov bl, 2
push str.SELECT_COUNT_1__as_pnr_count_FROM__booking_rec__WHERE_account_s_AND_rec_time__s
push edx
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x24], 3
je 0x49c531
push str.PNRR
mov ecx, eax
call fcn.004db9f0
mov esi, eax
jmp 0x49c533
xor esi, esi
mov eax, dword [esp + 0x10]
push 3
push 3
push 1
mov byte [esp + 0x30], bl
push eax
mov ecx, esi
mov bl, 1
call fcn.004dba80
test eax, eax
je 0x49c578
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jle 0x49c578
lea ecx, [esp + 0x18]
push ecx
push str.pnr_count
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x14]
cmp edx, eax
jl 0x49c578
xor bl, bl
test esi, esi
je 0x49c584
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
mov al, bl
pop esi
pop ebx
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8