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

Disassembly:
push 0xffffffffffffffff
push 0x5a9ee3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
mov edi, dword [esi + 4]
mov dword [esp + 0x3c], esi
call sub.MFC42.DLL_CString::CString_1
mov al, byte [esi + 0x20]
xor ebp, ebp
test al, al
mov dword [esp + 0x58], ebp
je 0x48034a
mov ecx, dword [0x637760]
lea eax, [esp + 0x30]
push eax
call fcn.0058f7e0
mov ecx, dword [edi + 0x78]
mov eax, dword [eax]
mov byte [esp + 0x58], 1
mov edx, dword [ecx + 0x10c]
lea ecx, [esp + 0x20]
push edx
push eax
push str.select__from__s_where__delflag_0_and__group____d_order_by__account_
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x30]
jmp 0x48037d
mov ecx, dword [0x637760]
lea edx, [esp + 0x30]
push edx
call fcn.0058f7e0
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push eax
push str.select__from__s_where__delflag_0_order_by__account_
push ecx
mov byte [esp + 0x64], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebp
mov byte [esp + 0x58], 3
je 0x4803a9
push str.XGSP
mov ecx, eax
call fcn.004db9f0
mov esi, eax
jmp 0x4803ab
xor esi, esi
mov edx, dword [esp + 0x20]
push 3
push 3
push 1
push edx
mov ecx, esi
mov byte [esp + 0x68], 0
call fcn.004dba80
cmp eax, ebp
jne 0x4805ab
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 0x61248c
call dword [edx + 0x90]
mov eax, dword [0x637760]
cmp eax, ebp
je 0x48044d
mov cl, byte [eax + 0x40]
test cl, cl
je 0x48044d
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
push 0x61247c
push str._RX_
push ebp
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x70], 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 0x48049b
push 0x61247c
push ecx
mov ecx, esp
mov dword [esp + 0x68], 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 + 0x68], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x64], 0
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebp
je 0x480596
mov ecx, dword [eax + 0x50]
xor ebx, ebx
cmp ecx, ebp
jle 0x480596
mov ecx, dword [eax + 0x4c]
mov ebp, dword [ecx + ebx*4]
test ebp, ebp
je 0x48058a
mov cl, byte [ebp + 0x88]
test cl, cl
je 0x48058a
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x480585
mov eax, dword [ebp + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x480585
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x60]
mov byte [esp + 0x58], 5
mov eax, dword [edx - 8]
test eax, eax
je 0x480577
mov al, byte [ebp + 0x80]
test al, al
jne 0x480577
mov eax, dword [edi + 0x78]
mov ecx, dword [ebp + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x480577
push 0x61247c
push ecx
mov ecx, esp
mov dword [esp + 0x44], 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 + 0x44], esp
push edx
mov byte [esp + 0x68], 6
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0x64], 5
call fcn.00402490
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x4804b5
test esi, esi
je 0x48091b
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x48091b
mov ecx, esi
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
mov ecx, eax
mov eax, 0x66666667
imul ecx
mov eax, dword [edi + 0x11b4]
mov dword [esp + 0x38], ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp eax, edx
jl 0x4805d9
mov dword [edi + 0x11b4], edx
mov ecx, dword [edi + 0x11b4]
cmp ecx, edx
lea ecx, [esp + 0x2c]
sete bl
mov byte [esp + 0x11], bl
call sub.MFC42.DLL_CString::CString_1
push 0x61341c
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 8
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 9
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 0xa
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 0xb
call sub.MFC42.DLL_CString::CString_1
sub esp, 0x10
mov dword [esp + 0x54], 0
mov eax, esp
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x40], esp
mov word [eax], 3
mov dword [eax + 8], 1
mov eax, dword [edi + 0x11b4]
mov ecx, esi
mov byte [esp + 0x68], 0xc
lea edx, [eax + eax*4]
shl edx, 1
push edx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::Move_long_int__class__variant_t_
mov dword [esp + 0x30], ebp
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::IsEOF_void_
test eax, eax
jne 0x48081f
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push str.account
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea ecx, [esp + 0x24]
push ecx
push str.group_name
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea edx, [esp + 0x28]
mov ecx, esi
push edx
push str.role_name
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_CString__
lea eax, [esp + 0x34]
mov ecx, esi
push eax
push str.disable
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea ecx, [esp + 0x44]
push ecx
push str.expire_date
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___class_COleDateTime__
mov eax, dword [0x637760]
xor ebp, ebp
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
mov ecx, dword [eax + 0x304]
test ecx, ecx
jle 0x48074b
mov edx, dword [eax + 0x300]
mov ebx, dword [edx + ebp*4]
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x48072b
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x480738
mov eax, dword [0x637760]
mov ecx, dword [eax + 0x304]
inc ebp
cmp ebp, ecx
jl 0x480700
jmp 0x480747
mov cl, byte [ebx + 0x11e0]
mov byte [esp + 0x13], 1
mov byte [esp + 0x12], cl
mov bl, byte [esp + 0x11]
lea edx, [esp + 0x18]
push 0xc
push edx
call fcn.004ec140
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.004ec140
lea ecx, [esp + 0x38]
push 0xe
push ecx
call fcn.004ec140
mov al, byte [esp + 0x2a]
add esp, 0x18
test al, al
mov ecx, 0x613414
jne 0x480784
mov ecx, 0x61340c
mov al, byte [esp + 0x13]
test al, al
mov eax, 0x612d74
jne 0x480796
mov eax, 0x61340c
mov edx, dword [esp + 0x34]
mov ebp, 0x603614
test edx, edx
je 0x4807a8
mov ebp, 0x6036f8
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_COleDateTime::GetMonth
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_COleDateTime::GetYear
push eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x4c]
push eax
mov eax, dword [edi + 0x11b4]
push ecx
lea ecx, [esp + 0x50]
lea edx, [eax + eax*4]
lea eax, [ebp + edx*2 + 1]
push eax
push str._3d___s___s___s___02d__02d__02d___s___s___s_r
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x30
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push edx
call fcn.0059453a
inc ebp
mov ecx, esi
mov dword [esp + 0x30], ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
cmp ebp, 0xa
jl 0x480681
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
neg bl
sbb bl, bl
mov ecx, dword [esp + 0x38]
and bl, 0xf5
lea edx, [esp + 0x14]
add bl, 0x2b
mov byte [esp + 0x58], 0xd
movsx eax, bl
push eax
push ecx
push str.______________________________________________________________________________r
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
call fcn.0059453a
push 9
lea ecx, [esp + 0x18]
push 0x613170
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
call fcn.0059453a
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x90]
test esi, esi
je 0x48089f
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x60]
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x40]
call fcn.00466ca0
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret 4