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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a7b7c
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.00478590
test al, al
jne 0x478815
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 [0x635400]
xor ebp, ebp
cmp eax, ebp
je 0x4786a9
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4786a9
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 [0x635400]
push str.command
push str.esms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb7d0
mov eax, dword [0x635400]
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 0x478702
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 [0x62fc58]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fc60]
cmp eax, ebp
je 0x478f00
cmp dword [eax + 0x50], ebp
jle 0x478f00
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x478804
mov cl, byte [edi + 0x88]
test cl, cl
je 0x478804
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4787ff
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4787ff
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 0x4787eb
mov al, byte [edi + 0x80]
test al, al
jne 0x4787eb
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 0x4787eb
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.004024b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x47871e
jmp 0x478f00
mov eax, dword [0x635400]
push str.PNRR
mov ecx, dword [eax + 8]
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
jne 0x478a23
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x60f9e8
call dword [edx + 0x90]
mov eax, dword [0x635400]
test eax, eax
je 0x4788b1
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4788b1
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
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 0x47890e
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 [0x62fc58]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fc60]
test eax, eax
je 0x478f00
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x478f00
mov ebx, 4
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x478a12
mov cl, byte [edi + 0x88]
test cl, cl
je 0x478a12
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x478a0d
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x478a0d
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 0x4789f9
mov al, byte [edi + 0x80]
test al, al
jne 0x4789f9
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 0x4789f9
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.004024b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x47892d
jmp 0x478f00
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.00478f20
test al, al
je 0x478ada
mov al, byte [esp + 0x30]
test al, al
je 0x478ac4
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x50]
lea eax, [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push 0x610100
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x478ada
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0x1c]
push eax
push 0x6100ec
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.00478f20
test al, al
je 0x478b31
mov al, byte [esp + 0x30]
test al, al
je 0x478b1b
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push 0x6100d4
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x478b31
mov edx, dword [ebp + 0x20]
lea eax, [esp + 0x24]
push edx
push 0x6100c0
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.00478f20
test al, al
je 0x478b88
mov al, byte [esp + 0x30]
test al, al
je 0x478b72
mov edx, dword [ebp + 0x20]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push 0x6100a8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x478b88
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x20]
push ecx
push 0x610094
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 [0x635400]
test eax, eax
je 0x478cb7
mov cl, byte [eax + 0x40]
test cl, cl
je 0x478cb7
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
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 [0x635400]
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 0x478d63
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 [0x62fc58]
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 [0x62fc60]
test eax, eax
je 0x478eca
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x478eca
mov bl, 0x12
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x478ebe
mov cl, byte [edi + 0x88]
test cl, cl
je 0x478ebe
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x478eb9
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x478eb9
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 0x478ea8
mov al, byte [edi + 0x80]
test al, al
jne 0x478ea8
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 0x478ea8
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.004024b0
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 [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x478d7f
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