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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a957c
push eax
mov dword fs:[0], esp
sub esp, 0x280
lea eax, [esp + 0x80]
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x29c]
push edi
mov esi, dword [ebp + 4]
push eax
push ecx
mov ecx, ebp
call fcn.00478680
test al, al
jne 0x478905
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
lea ecx, [esp + 0x90]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x90]
mov eax, dword [0x637760]
xor ebp, ebp
cmp eax, ebp
je 0x478799
mov cl, byte [eax + 0x40]
test cl, cl
je 0x478799
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x90]
push edx
push str._RX_
push ebp
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x20], 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 0x4787f2
lea ecx, [esp + 0x90]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], 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 + 0x24], esp
push edx
mov dword [esp + 0x2a8], ebp
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
cmp eax, ebp
je 0x478ff0
cmp dword [eax + 0x50], ebp
jle 0x478ff0
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4788f4
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4788f4
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4788ef
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4788ef
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 + 0x298], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x4788db
mov al, byte [edi + 0x80]
test al, al
jne 0x4788db
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 0x4788db
lea ecx, [esp + 0x90]
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 + 0x34], esp
push edx
mov byte [esp + 0x2a8], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x2a4], 1
call fcn.00402490
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x47880e
jmp 0x478ff0
mov eax, dword [0x637760]
push str.PNRR
mov ecx, dword [eax + 8]
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
jne 0x478b13
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x6119c0
call dword [edx + 0x90]
mov eax, dword [0x637760]
test eax, eax
je 0x4789a1
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4789a1
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x78]
lea ecx, [esp + 0x90]
push ecx
push str._RX_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
mov edx, dword [0x637760]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4789fe
lea edx, [esp + 0x90]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x20], 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 + 0x1c], esp
push eax
mov dword [esp + 0x2a8], 3
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.00401140
mov eax, dword [0x631fc0]
test eax, eax
je 0x478ff0
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x478ff0
mov ebx, 4
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x478b02
mov cl, byte [edi + 0x88]
test cl, cl
je 0x478b02
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x478afd
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x478afd
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 + 0x298], ebx
mov eax, dword [edx - 8]
test eax, eax
je 0x478ae9
mov al, byte [edi + 0x80]
test al, al
jne 0x478ae9
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 0x478ae9
lea ecx, [esp + 0x90]
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 + 0x34], esp
push edx
mov byte [esp + 0x2a8], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x2a4], bl
call fcn.00402490
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x478a1d
jmp 0x478ff0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov dword [esp + 0x298], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x298], 7
call sub.MFC42.DLL_CString::CString_1
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x50]
push 1
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x2a4], 8
call fcn.00479010
test al, al
je 0x478bca
mov al, byte [esp + 0x30]
test al, al
je 0x478bb4
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x50]
lea eax, [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push 0x6120d8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x478bca
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0x1c]
push eax
push 0x6120c4
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x50]
push 3
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, ebp
call fcn.00479010
test al, al
je 0x478c21
mov al, byte [esp + 0x30]
test al, al
je 0x478c0b
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push 0x6120ac
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x478c21
mov edx, dword [ebp + 0x20]
lea eax, [esp + 0x24]
push edx
push 0x612098
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x50]
push 2
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, ebp
call fcn.00479010
test al, al
je 0x478c78
mov al, byte [esp + 0x30]
test al, al
je 0x478c62
mov edx, dword [ebp + 0x20]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push 0x612080
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x478c78
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x20]
push ecx
push 0x61206c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
mov bl, 9
push eax
push edx
mov byte [esp + 0x2a4], bl
call sub.MFC42.DLL_operator
mov ecx, dword [esi + 0x7c]
mov eax, dword [eax]
mov edx, dword [esi]
inc ecx
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x2a0], 0xa
call dword [edx + 0x90]
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x298], 8
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x637760]
test eax, eax
je 0x478da7
mov cl, byte [eax + 0x40]
test cl, cl
je 0x478da7
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [esp + 0x24]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
lea edx, [esp + 0x20]
mov bl, 0xb
push edx
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x2a0], bl
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov edx, dword [esi + 0x78]
push eax
push str._RX_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x2ac], 0xc
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637760]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb100
add esp, 0x1c
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x298], 8
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x637760]
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c4d0
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x478e53
lea edx, [esp + 0x24]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
lea edx, [esp + 0x20]
mov byte [esp + 0x298], 0xd
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov bl, 0xe
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._RX_
mov byte [esp + 0x2a4], bl
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x2a8], 0xf
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fb8]
mov byte [esp + 0x2a4], bl
call fcn.00401140
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x298], 8
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
test eax, eax
je 0x478fba
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x478fba
mov bl, 0x12
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x478fae
mov cl, byte [edi + 0x88]
test cl, cl
je 0x478fae
call fcn.0044c4d0
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x478fa9
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x478fa9
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 + 0x298], 0x10
mov eax, dword [edx - 8]
test eax, eax
je 0x478f98
mov al, byte [edi + 0x80]
test al, al
jne 0x478f98
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 0x478f98
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x20]
lea edx, [esp + 0x2c]
push ecx
push eax
push edx
mov byte [esp + 0x2a4], 0x11
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov byte [esp + 0x298], bl
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], 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 + 0x1c], esp
push eax
mov byte [esp + 0x2a8], 0x13
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x2a4], bl
call fcn.00402490
lea ecx, [esp + 0x2c]
mov byte [esp + 0x298], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x298], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], 8
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fc0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x478e6f
lea ecx, [esp + 0x20]
mov byte [esp + 0x298], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x298], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x298], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x28c
ret 4