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

Disassembly:
push 0xffffffffffffffff
push 0x5aa223
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 0x4805ea
mov ecx, dword [0x637770]
lea eax, [esp + 0x30]
push eax
call fcn.0058fb30
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 0x48061d
mov ecx, dword [0x637770]
lea edx, [esp + 0x30]
push edx
call fcn.0058fb30
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 0x480649
push str.XGSP
mov ecx, eax
call fcn.004dbdb0
mov esi, eax
jmp 0x48064b
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.004dbe40
cmp eax, ebp
jne 0x48084b
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 [0x637770]
cmp eax, ebp
je 0x4806ed
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4806ed
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 [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 0x48073b
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 [0x631fc8]
mov byte [esp + 0x64], 0
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x480836
mov ecx, dword [eax + 0x50]
xor ebx, ebx
cmp ecx, ebp
jle 0x480836
mov ecx, dword [eax + 0x4c]
mov ebp, dword [ecx + ebx*4]
test ebp, ebp
je 0x48082a
mov cl, byte [ebp + 0x88]
test cl, cl
je 0x48082a
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x480825
mov eax, dword [ebp + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x480825
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 0x480817
mov al, byte [ebp + 0x80]
test al, al
jne 0x480817
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 0x480817
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.00402500
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebx
cmp ebx, ecx
jl 0x480755
test esi, esi
je 0x480bbb
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x480bbb
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 0x480879
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 0x480abf
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 [0x637770]
xor ebp, ebp
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
mov ecx, dword [eax + 0x304]
test ecx, ecx
jle 0x4809eb
mov edx, dword [eax + 0x300]
mov ebx, dword [edx + ebp*4]
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x4809cb
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 0x4809d8
mov eax, dword [0x637770]
mov ecx, dword [eax + 0x304]
inc ebp
cmp ebp, ecx
jl 0x4809a0
jmp 0x4809e7
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.004ec500
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.004ec500
lea ecx, [esp + 0x38]
push 0xe
push ecx
call fcn.004ec500
mov al, byte [esp + 0x2a]
add esp, 0x18
test al, al
mov ecx, 0x613414
jne 0x480a24
mov ecx, 0x61340c
mov al, byte [esp + 0x13]
test al, al
mov eax, 0x612d74
jne 0x480a36
mov eax, 0x61340c
mov edx, dword [esp + 0x34]
mov ebp, 0x603614
test edx, edx
je 0x480a48
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.0059488a
inc ebp
mov ecx, esi
mov dword [esp + 0x30], ebp
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::MoveNext_void_
cmp ebp, 0xa
jl 0x480921
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.0059488a
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.0059488a
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x90]
test esi, esi
je 0x480b3f
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.00466cf0
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