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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a7f5c
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.00478790
test al, al
jne 0x478a15
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 [0x635490]
xor ebp, ebp
cmp eax, ebp
je 0x4788a9
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4788a9
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 [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 0x478902
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 [0x62fce8]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x479100
cmp dword [eax + 0x50], ebp
jle 0x479100
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x478a04
mov cl, byte [edi + 0x88]
test cl, cl
je 0x478a04
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4789ff
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4789ff
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 0x4789eb
mov al, byte [edi + 0x80]
test al, al
jne 0x4789eb
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 0x4789eb
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 [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x47891e
jmp 0x479100
mov eax, dword [0x635490]
push str.PNRR
mov ecx, dword [eax + 8]
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
jne 0x478c23
mov eax, dword [esi + 0x7c]
mov edx, dword [esi]
inc eax
mov ecx, esi
push eax
push 0x60f9f8
call dword [edx + 0x90]
mov eax, dword [0x635490]
test eax, eax
je 0x478ab1
mov cl, byte [eax + 0x40]
test cl, cl
je 0x478ab1
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 [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 0x478b0e
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 [0x62fce8]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.00401140
mov eax, dword [0x62fcf0]
test eax, eax
je 0x479100
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x479100
mov ebx, 4
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x478c12
mov cl, byte [edi + 0x88]
test cl, cl
je 0x478c12
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x478c0d
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x478c0d
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 0x478bf9
mov al, byte [edi + 0x80]
test al, al
jne 0x478bf9
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 0x478bf9
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 [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x478b2d
jmp 0x479100
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.00479120
test al, al
je 0x478cda
mov al, byte [esp + 0x30]
test al, al
je 0x478cc4
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x50]
lea eax, [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push 0x610110
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x478cda
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0x1c]
push eax
push 0x6100fc
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.00479120
test al, al
je 0x478d31
mov al, byte [esp + 0x30]
test al, al
je 0x478d1b
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push 0x6100e4
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x478d31
mov edx, dword [ebp + 0x20]
lea eax, [esp + 0x24]
push edx
push 0x6100d0
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.00479120
test al, al
je 0x478d88
mov al, byte [esp + 0x30]
test al, al
je 0x478d72
mov edx, dword [ebp + 0x20]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push 0x6100b8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x478d88
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x20]
push ecx
push 0x6100a4
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 [0x635490]
test eax, eax
je 0x478eb7
mov cl, byte [eax + 0x40]
test cl, cl
je 0x478eb7
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 [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
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 [0x635490]
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 0x478f63
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 [0x62fce8]
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 [0x62fcf0]
test eax, eax
je 0x4790ca
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4790ca
mov bl, 0x12
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4790be
mov cl, byte [edi + 0x88]
test cl, cl
je 0x4790be
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4790b9
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4790b9
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 0x4790a8
mov al, byte [edi + 0x80]
test al, al
jne 0x4790a8
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 0x4790a8
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 [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x478f7f
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