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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5aabf8
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 0x487386
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 [0x637770]
xor ebp, ebp
cmp eax, ebp
je 0x487220
mov cl, byte [eax + 0x40]
test cl, cl
je 0x487220
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 [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 0x487276
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 [0x631fc8]
mov dword [esp + 0x24c], 0xffffffff
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x487ad5
cmp dword [eax + 0x50], ebp
jle 0x487ad5
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x487375
mov cl, byte [edi + 0x88]
test cl, cl
je 0x487375
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x487370
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x487370
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 0x48735c
mov al, byte [edi + 0x80]
test al, al
jne 0x48735c
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 0x48735c
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.00402500
lea ecx, [esp + 0x10]
mov dword [esp + 0x240], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x487292
jmp 0x487ad5
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 0x4873e7
push str.XGSP
mov ecx, eax
call fcn.004dbdb0
mov ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x4873ed
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.004dbe40
cmp eax, ebp
je 0x4878d5
mov ecx, ebx
call sym.ETermProxy.exe_public:_long_int___thiscall_CAdoRecordSet::GetRecordCount_void_
test eax, eax
je 0x4878d5
lea edx, [esp + 0x2c]
mov ecx, ebx
push edx
push 0x603170
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 0x487633
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 0x6149a8
call dword [edx + 0x90]
mov eax, dword [0x637770]
cmp eax, ebp
je 0x4874cd
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4874cd
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x614990
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 [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 0x487521
push 0x614990
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 [0x631fc8]
mov byte [esp + 0x24c], 3
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x487626
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x487626
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x48761a
mov cl, byte [edi + 0x88]
test cl, cl
je 0x48761a
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x487615
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x487615
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 0x487604
mov al, byte [edi + 0x80]
test al, al
jne 0x487604
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 0x487604
push 0x614990
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.00402500
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x487539
test ebx, ebx
je 0x487ac1
jmp 0x487ab9
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.004dc010
cmp ebx, ebp
je 0x487686
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
call sub.MFC42.DLL_AfxGetThread
cmp eax, ebp
je 0x487698
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x48769a
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 0x614970
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 [0x637770]
cmp eax, ebp
je 0x487766
mov cl, byte [eax + 0x40]
test cl, cl
je 0x487766
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 [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 0x4877ba
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 [0x631fc8]
mov byte [esp + 0x24c], 0xb
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x4878bf
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x4878bf
mov bl, 0xd
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4878b3
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4878b3
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4878ae
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4878ae
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 0x48789d
mov al, byte [edi + 0x80]
test al, al
jne 0x48789d
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 0x48789d
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.00402500
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4877d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 3
call sub.MFC42.DLL_CString::CString
jmp 0x487ac1
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 0x614284
call dword [edx + 0x90]
mov eax, dword [0x637770]
cmp eax, ebp
je 0x487958
mov cl, byte [eax + 0x40]
test cl, cl
je 0x487958
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
push 0x614274
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 [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 0x4879ac
push 0x614274
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 [0x631fc8]
mov byte [esp + 0x24c], 3
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x487ab5
mov ecx, dword [eax + 0x50]
test ecx, ecx
jle 0x487ab5
mov bl, 6
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x487aa5
mov cl, byte [edi + 0x88]
test cl, cl
je 0x487aa5
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x487aa0
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x487aa0
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 0x487a8f
mov al, byte [edi + 0x80]
test al, al
jne 0x487a8f
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 0x487a8f
push 0x614274
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.00402500
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4879c6
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x487ac1
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