Function at 0x483f20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5aa440
push eax
mov dword fs:[0], esp
sub esp, 0x230
mov edx, dword [esp + 0x240]
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x3c]
push edi
mov eax, dword [esi]
mov edi, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call dword [eax + 4]
test al, al
jne 0x484146
mov ecx, dword [edi + 0x7c]
mov eax, dword [edi]
inc ecx
lea edx, [esp + 0x40]
push ecx
push edx
mov ecx, edi
call dword [eax + 0x90]
mov eax, dword [0x637760]
xor ebp, ebp
cmp eax, ebp
je 0x483fe0
mov cl, byte [eax + 0x40]
test cl, cl
je 0x483fe0
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x78]
lea eax, [esp + 0x40]
push eax
push str._RX_
push ebp
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x484036
lea edx, [esp + 0x40]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [edi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov dword [esp + 0x258], ebp
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x254], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebp
je 0x4849ac
cmp dword [eax + 0x50], ebp
jle 0x4849ac
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x484135
mov cl, byte [esi + 0x88]
test cl, cl
je 0x484135
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x484130
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x484130
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x248], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x48411c
mov al, byte [esi + 0x80]
test al, al
jne 0x48411c
mov eax, dword [edi + 0x78]
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x48411c
lea ecx, [esp + 0x40]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], 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 + 0x34], esp
push edx
mov byte [esp + 0x258], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x254], 1
call fcn.00402490
lea ecx, [esp + 0x1c]
mov dword [esp + 0x248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x484052
jmp 0x4849ac
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov dword [esp + 0x248], 3
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push eax
push ecx
lea edx, [esp + 0x20]
push 0x6142f0
push edx
mov byte [esp + 0x258], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push eax
push ecx
lea edx, [esp + 0x18]
push str.select_top_1__from_qty_rec_WHERE_account_s_and_rec_time__s_00:00:00_order_by_id_desc
push edx
mov byte [esp + 0x258], 5
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov dword [esp + 0x20], eax
xor ebx, ebx
mov byte [esp + 0x248], 6
cmp eax, ebx
je 0x4841d9
push str.PNRR
mov ecx, eax
call fcn.004db9f0
mov ebp, eax
jmp 0x4841db
xor ebp, ebp
mov eax, dword [esp + 0x10]
push 3
push 3
push 1
push eax
mov ecx, ebp
mov byte [esp + 0x258], 5
call fcn.004dba80
cmp eax, ebx
jne 0x4843ef
mov edx, dword [edi + 0x7c]
mov ecx, edi
inc edx
mov eax, edx
mov dword [edi + 0x7c], edx
mov edx, dword [edi]
push eax
push 0x614284
call dword [edx + 0x90]
mov eax, dword [0x637760]
cmp eax, ebx
je 0x484280
mov cl, byte [eax + 0x40]
test cl, cl
je 0x484280
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
push 0x614274
push str._RX_
push ebx
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x30], 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], 0
je 0x4842d4
push 0x614274
push ecx
mov ecx, esp
mov dword [esp + 0x28], 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 + 0x34], esp
push edx
mov byte [esp + 0x258], 7
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x254], 5
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebx
je 0x4843d9
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x4843d9
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebx*4]
test esi, esi
je 0x4843cd
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4843cd
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4843c8
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4843c8
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x248], 8
mov eax, dword [edx - 8]
test eax, eax
je 0x4843b7
mov al, byte [esi + 0x80]
test al, al
jne 0x4843b7
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 0x4843b7
push 0x614274
push ecx
mov ecx, esp
mov dword [esp + 0x28], 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 + 0x34], esp
push edx
mov byte [esp + 0x258], 9
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x254], 8
call fcn.00402490
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x4842ec
test ebp, ebp
je 0x484976
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
jmp 0x484976
mov ecx, ebp
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jne 0x48440a
push 0x614258
lea ecx, [esp + 0x1c]
call fcn.0059429a
jmp 0x48445a
lea ecx, [esp + 0x2c]
push ecx
push str.auth_qty
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edx, [esp + 0x30]
mov ecx, ebp
push edx
push str.remnant_qty
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea edx, [eax + ecx]
push edx
push ecx
push eax
lea eax, [esp + 0x20]
push 0x614218
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0059453a
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov eax, edx
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
push str.select_sum_qty__as_sum_remnant_qty__count___as_rec_count_from_qty_rec_WHERE_account_s__and_opration
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0x14
mov ecx, ebp
push 3
push 3
push 1
push eax
call fcn.004dba80
lea ecx, [esp + 0x34]
push ecx
push str.sum_remnant_qty
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edx, [esp + 0x24]
mov ecx, ebp
push edx
push str.rec_count
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x61411c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.0059453a
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
mov edx, ecx
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str.select_top_1_qty_from_qty_rec_WHERE_account_s__and_opration
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x24]
add esp, 0x14
mov ecx, ebp
push 3
push 3
push 1
push edx
call fcn.004dba80
lea eax, [esp + 0x34]
mov ecx, ebp
push eax
push 0x603f6c
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
mov edx, ecx
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str.select_count___as_rec_count_from_qty_rec_WHERE_account_s__and_opration
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x24]
add esp, 0x14
mov ecx, ebp
push 3
push 3
push 1
push edx
call fcn.004dba80
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
push str.rec_count
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x613fc0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0059453a
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov eax, edx
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
push str.select_sum__qty__as_sum_qty__count___as_rec_count_from_qty_rec_WHERE_account_s__and_opration
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0x14
mov ecx, ebp
push 3
push 3
push 1
push eax
call fcn.004dba80
lea ecx, [esp + 0x38]
push ecx
push str.sum_qty
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edx, [esp + 0x24]
mov ecx, ebp
push edx
push str.rec_count
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x4845ea
mov eax, dword [esp + 0x24]
push ebx
push eax
lea ecx, [esp + 0x1c]
push 0x613ee0
push ecx
jmp 0x4845fa
mov edx, dword [esp + 0x24]
push eax
push edx
lea eax, [esp + 0x1c]
push 0x613eb0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0059453a
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov eax, edx
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
push str.select_sum_qty__as_sum_qty__count___as_rec_count_from_qty_rec_WHERE_account_s__and_opration
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0x14
mov ecx, ebp
push 3
push 3
push 1
push eax
call fcn.004dba80
lea ecx, [esp + 0x38]
push ecx
push str.sum_qty
mov ecx, ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edx, [esp + 0x24]
mov ecx, ebp
push edx
push str.rec_count
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x613dd8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.0059453a
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push ecx
push edx
lea eax, [esp + 0x18]
push str.select_top_1__from__qty_rec_WHERE_account_s_and_rec_time__s_23:59:59_order_by_id_desc
push eax
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x248], 0xa
je 0x4846d0
push str.PNRR
mov ecx, eax
call fcn.004db9f0
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x4846d6
mov dword [esp + 0x1c], ebx
mov esi, ebx
mov ecx, dword [esp + 0x10]
push 3
push 3
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x258], 5
call fcn.004dba80
cmp eax, ebx
jne 0x4848ef
mov edx, dword [edi + 0x7c]
mov ecx, edi
inc edx
mov eax, edx
mov dword [edi + 0x7c], edx
mov edx, dword [edi]
push eax
push 0x614284
call dword [edx + 0x90]
mov eax, dword [0x637760]
cmp eax, ebx
je 0x48477b
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48477b
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
push 0x614274
push str._RX_
push ebx
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x30], 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], 0
je 0x4847cf
push 0x614274
push ecx
mov ecx, esp
mov dword [esp + 0x28], 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 + 0x34], esp
push edx
mov byte [esp + 0x258], 0xb
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x254], 5
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebx
je 0x4848da
mov ecx, dword [eax + 0x50]
xor ebp, ebp
cmp ecx, ebx
jle 0x4848da
mov bl, 0xc
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4848ca
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4848ca
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4848c5
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4848c5
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x28]
mov byte [esp + 0x248], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4848b4
mov al, byte [esi + 0x80]
test al, al
jne 0x4848b4
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 0x4848b4
push 0x614274
push ecx
mov ecx, esp
mov dword [esp + 0x28], 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 + 0x48], esp
push edx
mov byte [esp + 0x258], 0xd
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x254], bl
call fcn.00402490
lea ecx, [esp + 0x28]
mov byte [esp + 0x248], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4847eb
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x484976
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x484976
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jne 0x48490a
push 0x613d5c
lea ecx, [esp + 0x1c]
call fcn.0059429a
jmp 0x48495a
lea ecx, [esp + 0x2c]
push ecx
push str.auth_qty
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edx, [esp + 0x30]
mov ecx, esi
push edx
push str.remnant_qty
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea edx, [eax + ecx]
push edx
push ecx
push eax
lea eax, [esp + 0x20]
push 0x613d18
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0059453a
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
push ebx
push eax
mov ecx, edi
call dword [edx + 0x90]
cmp esi, ebx
je 0x484976
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x248], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x23c
ret 4