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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5aa780
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 0x4843e6
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 [0x637770]
xor ebp, ebp
cmp eax, ebp
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 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 [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4842d6
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 [0x631fc8]
mov dword [esp + 0x254], 0xffffffff
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x484c4c
cmp dword [eax + 0x50], ebp
jle 0x484c4c
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4843d5
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4843d5
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4843d0
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4843d0
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 0x4843bc
mov al, byte [esi + 0x80]
test al, al
jne 0x4843bc
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 0x4843bc
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.00402500
lea ecx, [esp + 0x1c]
mov dword [esp + 0x248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4842f2
jmp 0x484c4c
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 0x484479
push str.PNRR
mov ecx, eax
call fcn.004dbdb0
mov ebp, eax
jmp 0x48447b
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.004dbe40
cmp eax, ebx
jne 0x48468f
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 [0x637770]
cmp eax, ebx
je 0x484520
mov cl, byte [eax + 0x40]
test cl, cl
je 0x484520
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 [0x637770]
push str.command
push str.esms
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]
call fcn.0044c540
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x484574
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 [0x631fc8]
mov byte [esp + 0x254], 5
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebx
je 0x484679
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x484679
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebx*4]
test esi, esi
je 0x48466d
mov cl, byte [esi + 0x88]
test cl, cl
je 0x48466d
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x484668
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x484668
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 0x484657
mov al, byte [esi + 0x80]
test al, al
jne 0x484657
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 0x484657
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.00402500
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x48458c
test ebp, ebp
je 0x484c16
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
jmp 0x484c16
mov ecx, ebp
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jne 0x4846aa
push 0x614258
lea ecx, [esp + 0x1c]
call fcn.005945ea
jmp 0x4846fa
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.0059488a
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.004dbe40
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.0059488a
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.004dbe40
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.004dbe40
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.0059488a
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.004dbe40
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 0x48488a
mov eax, dword [esp + 0x24]
push ebx
push eax
lea ecx, [esp + 0x1c]
push 0x613ee0
push ecx
jmp 0x48489a
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.0059488a
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.004dbe40
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.0059488a
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 0x484970
push str.PNRR
mov ecx, eax
call fcn.004dbdb0
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x484976
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.004dbe40
cmp eax, ebx
jne 0x484b8f
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 [0x637770]
cmp eax, ebx
je 0x484a1b
mov cl, byte [eax + 0x40]
test cl, cl
je 0x484a1b
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 [0x637770]
push str.command
push str.esms
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]
call fcn.0044c540
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x484a6f
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 [0x631fc8]
mov byte [esp + 0x254], 5
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebx
je 0x484b7a
mov ecx, dword [eax + 0x50]
xor ebp, ebp
cmp ecx, ebx
jle 0x484b7a
mov bl, 0xc
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x484b6a
mov cl, byte [esi + 0x88]
test cl, cl
je 0x484b6a
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x484b65
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x484b65
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 0x484b54
mov al, byte [esi + 0x80]
test al, al
jne 0x484b54
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 0x484b54
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.00402500
lea ecx, [esp + 0x28]
mov byte [esp + 0x248], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x484a8b
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x484c16
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x484c16
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jne 0x484baa
push 0x613d5c
lea ecx, [esp + 0x1c]
call fcn.005945ea
jmp 0x484bfa
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.0059488a
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
push ebx
push eax
mov ecx, edi
call dword [edx + 0x90]
cmp esi, ebx
je 0x484c16
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