Function at 0x40bde0
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x613779
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x850
push ebx
push esi
push edi
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x104
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40be92
lea ecx, [ebp - 0x34c]
call fcn.004ac570
mov ecx, dword [0x6f175c]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp + 8]
push str.Error__ld_GetSystemDirectory___during_InstSPI_r_n
push edx
call fcn.005fa6fb
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x34c]
push 1
push eax
call fcn.004ac690
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.006018cc
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x34c]
call fcn.004ac680
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x13c]
push str.idmmbc.dll
push ecx
push 0x6c5c64
push 0x6f5cc0
call fcn.005fa6fb
add esp, 0x10
lea edx, [ebp - 0x13c]
push 0x104
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bf22
lea ecx, [ebp - 0x34c]
call fcn.004ac570
mov eax, dword [0x6f175c]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
push str.Error__ld_GetModuleFileName___during_InstSPI_r_n
push ecx
call fcn.005fa6fb
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x34c]
push 1
push edx
call fcn.004ac690
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.006018cc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34c]
jmp 0x40be78
lea eax, [ebp - 0x85c]
lea ecx, [ebp - 0x75c]
push eax
lea edx, [ebp - 0x44c]
push ecx
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x13c]
push eax
push ecx
call fcn.005e5c0a
add esp, 0x14
lea edx, [ebp - 0x44c]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x13c]
push str.idmmbc.dll
push edx
push eax
push 0x6c5c2c
push ecx
call fcn.005e5bb8
mov edx, dword [0x6f5cc0]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x14
push edx
call esi
cmp eax, 0xffffffff
jne 0x40bfbc
lea eax, [ebp - 0x13c]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40bf9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40be7d
mov ecx, dword [0x6f5cc0]
push ebx
lea edx, [ebp - 0x13c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40be7d
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WS2_32
call edi
cmp eax, ebx
mov dword [0x6f5ce4], eax
je 0x40be7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSCInstallProvider
push eax
call esi
cmp eax, ebx
mov dword [0x6f5ce0], eax
je 0x40be7d
mov eax, dword [0x6f5ce4]
push str.WSCEnumProtocols
push eax
call esi
cmp eax, ebx
mov dword [0x6f5cdc], eax
je 0x40be7d
mov ecx, dword [0x6f5ce4]
push str.WSCWriteProviderOrder
push ecx
call esi
mov edx, dword [0x6f5ce4]
push str.WSCUpdateProvider
push edx
mov dword [0x6f5cd8], eax
call esi
mov dword [0x6f5cd4], eax
mov eax, dword [0x6f5ce4]
push str.WSCGetProviderPath
push eax
call esi
mov ecx, dword [0x6f5ce4]
push str.WSCDeinstallProvider
push ecx
mov dword [0x6f5cd0], eax
call esi
push str.rpcrt4.dll
mov dword [0x6f5ccc], eax
call edi
cmp eax, ebx
mov dword [0x6f5cc8], eax
je 0x40be7d
push str.UuidFromStringA
push eax
call esi
cmp eax, ebx
mov dword [0x6f5cc4], eax
je 0x40be7d
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x34]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x6c4f9c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp + 8], ebx
je 0x40c0b9
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040b640
add esp, 4
cmp eax, ebx
jne 0x40c16a
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x1c]
push ecx
push edx
push ebx
push ebx
call dword [0x6f5cdc]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005e5a7e
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [ebp - 0x20], edi
jne 0x40c0fb
mov ecx, dword [0x6f5ce4]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
call esi
mov edx, dword [0x6f5cc8]
push edx
call esi
jmp 0x40be7d
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push edi
push 0
call dword [0x6f5cdc]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x28], ebx
je 0x40c161
mov dword [ebp + 8], 0
xor eax, eax
cmp eax, ebx
jge 0x40c15a
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
xor ebx, ebx
lea edx, [eax + ecx*4]
mov ecx, 4
lea edx, [edi + edx*4]
mov edi, 0x6c5530
lea esi, [edx + 0x14]
repe cmpsd dword [esi], dword es:[edi]
jne 0x40c151
mov ecx, dword [edx + 0x24]
mov dword [ebp + 8], 1
mov dword [ebp - 0x2c], ecx
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
inc eax
jmp 0x40c11f
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40c186
push edi
call fcn.005e5002
add esp, 4
mov edx, dword [0x6f5ce4]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edx
call esi
mov eax, dword [0x6f5cc8]
push eax
call esi
jmp 0x40be7d
xor esi, esi
cmp esi, ebx
jge 0x40c1d2
lea ecx, [esi + esi*4]
shl ecx, 3
sub ecx, esi
lea edx, [esi + ecx*4]
mov eax, dword [edi + edx*4 + 0x5c]
lea ecx, [edi + edx*4]
cmp eax, 6
je 0x40c1bc
cmp eax, 0x11
je 0x40c1bc
cmp eax, 0xff
je 0x40c1bc
test eax, eax
jne 0x40c1cf
cmp dword [ecx + 0x60], 0xff
jne 0x40c1cf
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
push ebx
push edi
push eax
push edx
push ecx
call fcn.0040b740
add esp, 0x14
inc esi
jmp 0x40c188
push edi
call fcn.005e5002
mov eax, dword [0x6c5540]
add esp, 4
test eax, eax
je 0x40c456
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
mov dword [ebp - 0x1c], 0
call dword [0x6f5cdc]
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005e5a7e
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 0x20], ebx
je 0x40c456
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push ebx
push 0
call dword [0x6f5cdc]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x28], edi
je 0x40c44d
lea edx, [edi*4]
push edx
call fcn.005e5a7e
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x40c44d
xor esi, esi
mov eax, 7
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], eax
cmp eax, 1
jle 0x40c360
xor esi, esi
cmp esi, edi
jge 0x40c2df
lea ecx, [esi + esi*4]
shl ecx, 3
sub ecx, esi
lea edx, [esi + ecx*4]
mov ecx, dword [ebx + edx*4 + 0x28]
cmp ecx, eax
lea edi, [ebx + edx*4]
jne 0x40c2d3
mov ebx, dword [ebp - 0x2c]
lea eax, [edi + 0x74]
push str.IDM_LAYERED_
push eax
call fcn.005e5a05
add esp, 8
test eax, eax
jne 0x40c2b4
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jge 0x40c2ae
cmp dword [edi + eax*4 + 0x2c], ebx
je 0x40c2b4
inc eax
jmp 0x40c2a1
xor eax, eax
test eax, eax
je 0x40c2d3
mov eax, dword [ebp - 0x20]
lea ecx, [esi + esi*4]
shl ecx, 3
sub ecx, esi
lea edx, [esi + ecx*4]
mov ecx, dword [eax + edx*4 + 0x24]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
inc esi
jmp 0x40c26c
xor esi, esi
cmp esi, edi
jge 0x40c354
lea ecx, [esi + esi*4]
shl ecx, 3
sub ecx, esi
lea edx, [esi + ecx*4]
mov ecx, dword [ebx + edx*4 + 0x28]
cmp ecx, eax
lea edi, [ebx + edx*4]
jne 0x40c348
mov ebx, dword [ebp - 0x2c]
lea eax, [edi + 0x74]
push str.IDM_LAYERED_
push eax
call fcn.005e5a05
add esp, 8
test eax, eax
jne 0x40c348
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jge 0x40c323
cmp dword [edi + eax*4 + 0x2c], ebx
je 0x40c348
inc eax
jmp 0x40c316
xor eax, eax
test eax, eax
jne 0x40c348
mov eax, dword [ebp - 0x20]
lea ecx, [esi + esi*4]
shl ecx, 3
sub ecx, esi
lea edx, [esi + ecx*4]
mov ecx, dword [eax + edx*4 + 0x24]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
inc esi
jmp 0x40c2e1
mov esi, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x24], eax
jmp 0x40c261
xor eax, eax
cmp eax, edi
jge 0x40c38a
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
lea edx, [eax + ecx*4]
lea ecx, [ebx + edx*4]
mov edx, dword [ebx + edx*4 + 0x28]
cmp edx, 1
jg 0x40c387
mov edx, dword [ebp + 8]
mov ecx, dword [ecx + 0x24]
mov dword [edx + esi*4], ecx
inc esi
inc eax
jmp 0x40c362
mov eax, dword [0x6f5cd8]
push esi
test eax, eax
je 0x40c3c0
mov ecx, dword [ebp + 8]
push ecx
call eax
cmp eax, 0x2afa
mov dword [ebp - 0x18], eax
je 0x40c3ab
cmp eax, 0xaa
jne 0x40c3e5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
push esi
push edx
call dword [0x6f5cd8]
jmp 0x40c3e2
mov edi, dword [ebp + 8]
push edi
call fcn.0040c4c0
cmp eax, 0xaa
mov dword [ebp - 0x18], eax
jne 0x40c3e5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
call fcn.0040c4c0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40c441
lea ecx, [ebp - 0x65c]
call fcn.004ac570
mov eax, dword [0x6f175c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push ecx
push str.Reodering_failed_with_error__ld_r_n
push edx
mov byte [ebp - 4], 6
call fcn.005fa6fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x65c]
push 1
push eax
call fcn.004ac690
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.006018cc
lea ecx, [ebp - 0x65c]
mov byte [ebp - 4], 0
call fcn.004ac680
mov ecx, dword [ebp + 8]
push ecx
call fcn.005e5002
add esp, 4
push ebx
call fcn.005e5002
add esp, 4
mov edx, dword [0x6f5ce4]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edx
call esi
mov eax, dword [0x6f5cc8]
push eax
call esi
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword [0x6f5ce0], eax
mov dword [0x6f5cdc], eax
mov dword [0x6f5cc4], eax
mov dword [0x6f5cd8], eax
mov dword [0x6f5cd4], eax
mov dword [0x6f5cd0], eax
mov dword [0x6f5ccc], eax
mov dword [0x6f5ce4], eax
mov dword [0x6f5cc8], eax
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4