Function at 0x419f20
Capabilities:
Get common file path

Disassembly:
dec esp
and al, 0x30
push ecx
mov ecx, esi
call fcn.0041af30
mov dword [esp + 0x188], 4
cmp byte [esp + 0x30], bl
je 0x419fb6
call fcn.004196d0
or ebx, 0xffffffff
mov dword [esp + 0x188], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x188], ebx
lea edx, [esp + 0x34]
mov dword [esp + 0x14], edx
mov dword [esp + 0x188], 7
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x20]
mov esi, edx
call fcn.00401b30
mov dword [esp + 0x188], ebx
mov eax, dword [esp + 0x38]
push eax
call fcn.004092ec
add esp, 4
mov eax, 0x104
lea esi, [esp + 0x4c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00403c50
mov byte [esp + 0x188], 8
mov eax, 0x104
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00403c50
mov byte [esp + 0x188], 9
mov esi, dword [esp + 0x1c]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
mov edi, 7
mov eax, esi
mov word [esp + 0x7c], cx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x41a030
sub eax, ecx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x80]
call fcn.00401900
mov byte [esp + 0x188], 0xa
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push ebx
mov eax, 0x4251e8
mov word [esi], dx
call fcn.00401900
mov byte [esp + 0x1a4], 0xb
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [esp + 0x50], esp
mov word [esi], ax
push 0xc
mov eax, str.extract_path
call fcn.00401900
mov byte [esp + 0x1c0], 0xc
mov byte [esp + 0x1c0], 0xa
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x64]
call fcn.0041adc0
mov byte [esp + 0x188], 0xd
mov byte [ecx], al
add byte [eax], al
or eax, 0xa8249c39
add byte [eax], al
invalid
je 0x41a0e6
push ebx
lea ecx, [esp + 0x9c]
push ecx
or eax, 0xffffffff
lea ecx, [esp + 0x84]
call fcn.00401600
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x41a0f8
lea eax, [esp + 0x7c]
mov esi, dword [esp + 0x4c]
push esi
push ebx
push str.IEDriver
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor edx, edx
mov eax, esi
mov word [esp + 0x60], dx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a120
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x64]
call fcn.00401900
mov byte [esp + 0x188], 0xe
mov ecx, esi
call fcn.00419320
test al, al
jne 0x41a2b9
mov eax, esi
push eax
push ecx
push str.Failed_to_extract_the_library_to_temp_directory:
push 0x42c218
call fcn.00406270
add esp, 0xc
push eax
call fcn.004064e0
add esp, 8
mov byte [esp + 0x188], 0xd
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x41a191
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004092ec
add esp, 4
xor edx, edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x41a2c8
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, ebx
jne 0x41a401
lea eax, [esp + 0x60]
push eax
push ecx
push str.Failed_to_load_the_library_from_temp_directory:
push 0x42c218
call fcn.00406270
add esp, 0xc
push eax
call fcn.004064e0
add esp, 8
mov byte [esp + 0x188], 0xd
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x41a31e
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004092ec
add esp, 4
xor edx, edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
mov byte [esp + 0x188], 0xa
cmp dword [esp + 0xac], esi
jb 0x41a34e
mov eax, dword [esp + 0x98]
push eax
call fcn.004092ec
add esp, 4
xor ecx, ecx
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], cx
mov byte [esp + 0x188], 9
cmp dword [esp + 0x90], esi
jb 0x41a384
mov edx, dword [esp + 0x7c]
push edx
call fcn.004092ec
add esp, 4
xor eax, eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], ax
mov byte [esp + 0x188], 8
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x41a3b2
push eax
call fcn.004092ec
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x188], 4
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x41a3d7
push eax
call fcn.004092ec
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x188], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.0041b610
mov eax, 2
jmp fcn.00419f92
push str.StartServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StopServer
push esi
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x5c], ebx
je 0x41ab6a
cmp eax, ebx
je 0x41ab6a
sub esp, 0x1c
mov eax, str.5555
mov ecx, esp
mov dword [esp + 0x60], esp
call fcn.004011b0
mov byte [esp + 0x1a4], 0x12
sub esp, 0x1c
mov eax, str.port
mov ecx, esp
mov dword [esp + 0x80], esp
call fcn.004011b0
mov byte [esp + 0x1c0], 0x13
mov byte [esp + 0x1c0], 0xe
lea edx, [esp + 0xec]
lea ecx, [esp + 0x64]
call fcn.0041adc0
mov byte [esp + 0x188], 0x14
cmp dword [eax + 0x14], 8
jb 0x41a494
mov eax, dword [eax]
push eax
call fcn.00409d27
add esp, 4
mov edi, eax
mov byte [esp + 0x188], 0xe
lea esi, [esp + 0xb4]
call fcn.004011f0
sub esp, 0x1c
mov eax, 0x4251e8
mov ecx, esp
mov dword [esp + 0x64], esp
call fcn.004011b0
mov byte [esp + 0x1a4], 0x15
sub esp, 0x1c
mov eax, str.host
mov ecx, esp
mov dword [esp + 0x7c], esp
call fcn.004011b0
mov byte [esp + 0x1c0], 0x16
mov byte [esp + 0x1c0], 0xe
push cs
lea edx, [esp + 0x140]
lea ecx, [esp + 0x64]
call fcn.0041adc0
mov byte [esp + 0x188], 0x17
sub esp, 0x1c
mov eax, 0x4251e8
mov ecx, esp
mov dword [esp + 0x64], esp
call fcn.004011b0
mov byte [esp + 0x1a4], 0x18
sub esp, 0x1c
mov eax, str.log_level
mov ecx, esp
mov dword [esp + 0x7c], esp
call fcn.004011b0
mov byte [esp + 0x1c0], 0x19
mov byte [esp + 0x1c0], 0x17
test byte [eax + eax*8], ah
add dword [eax], eax
add byte [edi], dl
lea ecx, [esp + 0x60]
push ecx
push ecx
push str.Could_not_find_entry_point_in_extracted_library:
push 0x42c218
call fcn.00406270
add esp, 0xc
push eax
call fcn.004064e0
add esp, 8
mov byte [esp + 0x188], 0xd
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x41abab
mov edx, dword [esp + 0x60]
push edx
call fcn.004092ec
add esp, 4
xor eax, eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], ax
mov byte [esp + 0x188], 0xa
cmp dword [esp + 0xac], esi
jb 0x41abdb
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004092ec
add esp, 4
xor edx, edx
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], dx
mov byte [esp + 0x188], 9
cmp dword [esp + 0x90], esi
jb 0x41ac11
mov eax, dword [esp + 0x7c]
push eax
call fcn.004092ec
add esp, 4
xor ecx, ecx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], cx
mov byte [esp + 0x188], 8
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x41ac3f
push eax
call fcn.004092ec
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x188], 4
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x41ac64
push eax
call fcn.004092ec
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x188], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.0041b610
mov eax, 3
jmp fcn.00419f92