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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a9368
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov edx, dword [esp + 0x238]
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x38]
mov eax, dword [edi]
mov esi, dword [edi + 4]
push ecx
push edx
mov ecx, edi
call dword [eax + 4]
test al, al
jne 0x4878a6
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi]
inc ecx
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [0x635490]
xor ebp, ebp
cmp eax, ebp
je 0x487740
mov cl, byte [eax + 0x40]
test cl, cl
je 0x487740
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
lea eax, [esp + 0x38]
push eax
push str._RX_
push ebp
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
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 0x487796
lea edx, [esp + 0x38]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov dword [esp + 0x250], ebp
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x62fce8]
mov dword [esp + 0x24c], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x487ff5
cmp dword [eax + 0x50], ebp
jle 0x487ff5
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x487895
mov cl, byte [edi + 0x88]
test cl, cl
je 0x487895
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x487890
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x487890
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov dword [esp + 0x240], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x48787c
mov al, byte [edi + 0x80]
test al, al
jne 0x48787c
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x48787c
lea ecx, [esp + 0x38]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x250], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x24c], 1
call fcn.004024b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x240], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4877b2
jmp 0x487ff5
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x78]
mov edx, dword [edi + 0x20]
mov dword [esp + 0x240], 3
mov ecx, dword [eax + 0x10c]
lea eax, [esp + 0x20]
push ecx
push edx
push str.select__id___ins_control_enable___add_ins_count___add_ins_curr__from__client_config__WHERE__account__s_AND__group__d
push eax
call sub.MFC42.DLL_CString::Format
push 0x40
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov dword [esp + 0x18], eax
xor ebp, ebp
mov byte [esp + 0x240], 4
cmp eax, ebp
je 0x487907
push str.XGSP
mov ecx, eax
call fcn.004dc2a0
mov ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x48790d
mov dword [esp + 0x10], ebp
mov ebx, ebp
mov ecx, dword [esp + 0x20]
push 3
push 3
push 1
push ecx
mov ecx, ebx
mov byte [esp + 0x250], 3
call fcn.004dc330
cmp eax, ebp
je 0x487df5
mov ecx, ebx
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
je 0x487df5
lea edx, [esp + 0x2c]
mov ecx, ebx
push edx
push 0x601170
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
push str.ins_control_enable
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
cmp dword [esp + 0x28], ebp
jne 0x487b53
mov edx, dword [esi + 0x7c]
mov ecx, esi
inc edx
mov eax, edx
mov dword [esi + 0x7c], edx
mov edx, dword [esi]
push eax
push 0x612c58
call dword [edx + 0x90]
mov eax, dword [0x635490]
cmp eax, ebp
je 0x4879ed
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4879ed
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x612c40
push str._RX_
push ebp
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x635490]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
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 0x487a41
push 0x612c40
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x250], 8
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x62fce8]
mov byte [esp + 0x24c], 3
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x487b46
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x487b46
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x487b3a
mov cl, byte [edi + 0x88]
test cl, cl
je 0x487b3a
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x487b35
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x487b35
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov byte [esp + 0x240], 9
mov eax, dword [edx - 8]
test eax, eax
je 0x487b24
mov al, byte [edi + 0x80]
test al, al
jne 0x487b24
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x487b24
push 0x612c40
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x250], 0xa
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x24c], 9
call fcn.004024b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x487a59
test ebx, ebx
je 0x487fe1
jmp 0x487fd9
lea ecx, [esp + 0x24]
push ecx
push str.add_ins_count
mov ecx, ebx
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
lea edx, [esp + 0x30]
mov ecx, ebx
push edx
push str.add_ins_curr
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::GetCollect_char_const___int__
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x24]
add eax, ecx
lea ecx, [esp + 0x14]
push ecx
push str.add_ins_count
mov ecx, ebx
mov dword [esp + 0x1c], eax
call sym.ETermProxy.exe_public:_int___thiscall_CAdoRecordSet::PutCollect_char_const___int_const__
mov ecx, ebx
call fcn.004dc500
cmp ebx, ebp
je 0x487ba6
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
call sub.MFC42.DLL_AfxGetThread
cmp eax, ebp
je 0x487bb8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x487bba
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 0x20]
push 2
push ecx
push 0x464
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov ebx, dword [edi + 0x24]
mov edx, eax
sub edx, ecx
sub eax, ecx
add edx, ebx
mov byte [esp + 0x240], 0xb
push edx
push eax
lea eax, [esp + 0x24]
push 0x612c20
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x7c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi]
add esp, 0x10
inc eax
push eax
push ecx
mov ecx, esi
call dword [edx + 0x90]
mov eax, dword [0x635490]
cmp eax, ebp
je 0x487c86
mov cl, byte [eax + 0x40]
test cl, cl
je 0x487c86
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x78]
push edx
push str._RX_
push ebp
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x635490]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
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 0x487cda
mov ecx, dword [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x250], 0xc
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x62fce8]
mov byte [esp + 0x24c], 0xb
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x487ddf
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x487ddf
mov bl, 0xd
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x487dd3
mov cl, byte [edi + 0x88]
test cl, cl
je 0x487dd3
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x487dce
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x487dce
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
mov byte [esp + 0x240], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x487dbd
mov al, byte [edi + 0x80]
test al, al
jne 0x487dbd
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x487dbd
mov ecx, dword [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x250], 0xe
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x24c], bl
call fcn.004024b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x487cf4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 3
call sub.MFC42.DLL_CString::CString
jmp 0x487fe1
mov edx, dword [esi + 0x7c]
mov ecx, esi
inc edx
mov eax, edx
mov dword [esi + 0x7c], edx
mov edx, dword [esi]
push eax
push 0x6123e8
call dword [edx + 0x90]
mov eax, dword [0x635490]
cmp eax, ebp
je 0x487e78
mov cl, byte [eax + 0x40]
test cl, cl
je 0x487e78
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x6123d8
push str._RX_
push ebp
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x635490]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
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 0x487ecc
push 0x6123d8
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x250], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x62fce8]
mov byte [esp + 0x24c], 3
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x487fd5
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x487fd5
mov bl, 6
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x487fc5
mov cl, byte [edi + 0x88]
test cl, cl
je 0x487fc5
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x487fc0
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x487fc0
mov ecx, dword [esi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
mov byte [esp + 0x240], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x487faf
mov al, byte [edi + 0x80]
test al, al
jne 0x487faf
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x487faf
push 0x6123d8
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._RX_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x250], 7
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x24c], bl
call fcn.004024b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x487ee6
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x487fe1
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
lea ecx, [esp + 0x20]
mov dword [esp + 0x240], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x234
ret 4