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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a98bc
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.00478920
test al, al
jne 0x478ba5
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 [0x637770]
xor ebp, ebp
cmp eax, ebp
je 0x478a39
mov cl, byte [eax + 0x40]
test cl, cl
je 0x478a39
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 [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 0x478a92
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 [0x631fc8]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x479290
cmp dword [eax + 0x50], ebp
jle 0x479290
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x478b94
mov cl, byte [edi + 0x88]
test cl, cl
je 0x478b94
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x478b8f
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x478b8f
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 0x478b7b
mov al, byte [edi + 0x80]
test al, al
jne 0x478b7b
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 0x478b7b
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.00402500
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x478aae
jmp 0x479290
mov eax, dword [0x637770]
push str.PNRR
mov ecx, dword [eax + 8]
call sym.ETermProxy.exe_public:_class_CCSConnection____thiscall_CDBConnCollect::GetConnByName_char__
test eax, eax
jne 0x478db3
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 [0x637770]
test eax, eax
je 0x478c41
mov cl, byte [eax + 0x40]
test cl, cl
je 0x478c41
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 [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 0x478c9e
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 [0x631fc8]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x479290
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x479290
mov ebx, 4
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x478da2
mov cl, byte [edi + 0x88]
test cl, cl
je 0x478da2
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x478d9d
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x478d9d
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 0x478d89
mov al, byte [edi + 0x80]
test al, al
jne 0x478d89
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 0x478d89
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.00402500
lea ecx, [esp + 0x10]
mov dword [esp + 0x298], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x478cbd
jmp 0x479290
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.004792b0
test al, al
je 0x478e6a
mov al, byte [esp + 0x30]
test al, al
je 0x478e54
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 0x478e6a
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.004792b0
test al, al
je 0x478ec1
mov al, byte [esp + 0x30]
test al, al
je 0x478eab
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 0x478ec1
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.004792b0
test al, al
je 0x478f18
mov al, byte [esp + 0x30]
test al, al
je 0x478f02
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 0x478f18
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 [0x637770]
test eax, eax
je 0x479047
mov cl, byte [eax + 0x40]
test cl, cl
je 0x479047
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 [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
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 [0x637770]
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 0x4790f3
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 [0x631fc8]
mov byte [esp + 0x2a4], bl
call fcn.00401160
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 [0x631fd0]
test eax, eax
je 0x47925a
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x47925a
mov bl, 0x12
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x47924e
mov cl, byte [edi + 0x88]
test cl, cl
je 0x47924e
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x479249
mov eax, dword [edi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x479249
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 0x479238
mov al, byte [edi + 0x80]
test al, al
jne 0x479238
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 0x479238
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.00402500
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 [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x47910f
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