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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a8ab0
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 0x484256
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 [0x635400]
xor ebp, ebp
cmp eax, ebp
je 0x4840f0
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4840f0
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x484146
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 [0x62fc58]
mov dword [esp + 0x254], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fc60]
cmp eax, ebp
je 0x484abc
cmp dword [eax + 0x50], ebp
jle 0x484abc
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x484245
mov cl, byte [esi + 0x88]
test cl, cl
je 0x484245
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x484240
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x484240
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 0x48422c
mov al, byte [esi + 0x80]
test al, al
jne 0x48422c
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 0x48422c
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.004024b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x484162
jmp 0x484abc
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 0x612444
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 0x4842e9
push str.PNRR
mov ecx, eax
call fcn.004dc060
mov ebp, eax
jmp 0x4842eb
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.004dc0f0
cmp eax, ebx
jne 0x4844ff
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 0x6123d8
call dword [edx + 0x90]
mov eax, dword [0x635400]
cmp eax, ebx
je 0x484390
mov cl, byte [eax + 0x40]
test cl, cl
je 0x484390
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
push 0x6123c8
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 [0x635400]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb7d0
mov eax, dword [0x635400]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c560
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x4843e4
push 0x6123c8
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 [0x62fc58]
mov byte [esp + 0x254], 5
call fcn.00401140
mov eax, dword [0x62fc60]
cmp eax, ebx
je 0x4844e9
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x4844e9
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebx*4]
test esi, esi
je 0x4844dd
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4844dd
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4844d8
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4844d8
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 0x4844c7
mov al, byte [esi + 0x80]
test al, al
jne 0x4844c7
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 0x4844c7
push 0x6123c8
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.004024b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x4843fc
test ebp, ebp
je 0x484a86
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
jmp 0x484a86
mov ecx, ebp
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jne 0x48451a
push 0x6123ac
lea ecx, [esp + 0x1c]
call fcn.005928ca
jmp 0x48456a
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 0x61236c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00592b6a
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.004dc0f0
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 0x612270
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.00592b6a
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.004dc0f0
lea eax, [esp + 0x34]
mov ecx, ebp
push eax
push 0x601f6c
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.004dc0f0
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 0x612114
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00592b6a
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.004dc0f0
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 0x4846fa
mov eax, dword [esp + 0x24]
push ebx
push eax
lea ecx, [esp + 0x1c]
push 0x612034
push ecx
jmp 0x48470a
mov edx, dword [esp + 0x24]
push eax
push edx
lea eax, [esp + 0x1c]
push 0x612004
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00592b6a
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.004dc0f0
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 0x611f2c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.00592b6a
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 0x4847e0
push str.PNRR
mov ecx, eax
call fcn.004dc060
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x4847e6
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.004dc0f0
cmp eax, ebx
jne 0x4849ff
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 0x6123d8
call dword [edx + 0x90]
mov eax, dword [0x635400]
cmp eax, ebx
je 0x48488b
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48488b
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
push 0x6123c8
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 [0x635400]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb7d0
mov eax, dword [0x635400]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
call fcn.0044c560
mov eax, dword [eax + 0xd0]
cmp byte [eax], 0
je 0x4848df
push 0x6123c8
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 [0x62fc58]
mov byte [esp + 0x254], 5
call fcn.00401140
mov eax, dword [0x62fc60]
cmp eax, ebx
je 0x4849ea
mov ecx, dword [eax + 0x50]
xor ebp, ebp
cmp ecx, ebx
jle 0x4849ea
mov bl, 0xc
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4849da
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4849da
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4849d5
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4849d5
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 0x4849c4
mov al, byte [esi + 0x80]
test al, al
jne 0x4849c4
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 0x4849c4
push 0x6123c8
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.004024b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x248], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4848fb
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x484a86
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x484a86
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
jne 0x484a1a
push 0x611eb0
lea ecx, [esp + 0x1c]
call fcn.005928ca
jmp 0x484a6a
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 0x611e6c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00592b6a
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
push ebx
push eax
mov ecx, edi
call dword [edx + 0x90]
cmp esi, ebx
je 0x484a86
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