Function at 0x10043930
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x444]
sub esp, 0x444
push 0xffffffffffffffff
push 0x1009d745
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100ef034]
xor eax, ebp
mov dword [ebp + 0x440], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 0x44c]
mov dword [ebx], 0
call fcn.10045600
test al, al
je 0x10043c1e
lea eax, [ebp + 0x30]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x100439ac
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100439a2
xor edx, edx
lea eax, [ebp + 0x30]
cmp word [ebp + 0x30], dx
je 0x100439c9
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x100439b7
cmp ecx, edx
jb 0x10043c1e
lea ecx, [ebp + 0x30]
xor edx, edx
call fcn.1003a730
mov ecx, eax
test ecx, ecx
je 0x100439f4
nop dword [eax]
mov ax, word [edi + edx*2]
cmp ax, word [ebp + edx*2 + 0x30]
jne 0x10043c1e
inc edx
cmp edx, ecx
jb 0x100439e0
lea ecx, [ebp]
call fcn.1003ae00
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x18]
push ecx
mov ecx, eax
call fcn.10047330
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x10043a1c
mov esi, dword [esi]
call fcn.1003aaa0
mov ecx, eax
test ecx, ecx
je 0x10043cb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push esi
call fcn.1003f670
test al, al
jne 0x10043a6d
test esi, esi
jne 0x10043a4f
xor ecx, ecx
jmp 0x10043a63
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10043a54
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.1003f950
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.10038340
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.10038340
lea ecx, [ebp - 0x10]
call fcn.10043540
push 0x208
lea eax, [ebp + 0x238]
push 0
push eax
call fcn.10078b00
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0x238]
add esp, 0xc
push eax
push 0
push str.shim_clone
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [ebx]
test eax, eax
je 0x10043aca
push eax
call fcn.1007686c
add esp, 4
xor ecx, ecx
lea eax, [ebp + 0x238]
cmp word [ebp + 0x238], cx
je 0x10043aea
nop dword [eax + eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10043ae0
lea eax, [ecx + 1]
mov edx, 2
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10076871
mov ecx, eax
add esp, 4
mov ax, word [ebp + 0x238]
mov dword [ebx], ecx
test ax, ax
je 0x10043b35
lea ebx, [ebp + 0x238]
movzx edx, ax
sub ebx, ecx
mov word [ecx], dx
add ecx, 2
movzx eax, word [ebx + ecx]
mov edx, eax
test ax, ax
jne 0x10043b21
mov ebx, dword [ebp - 0x1c]
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], al
mov byte [ebp - 4], 8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0x14]
test eax, eax
push 0
push dword [ebx]
mov edx, 1
cmovne ecx, edx
push edi
mov byte [ebp - 0x14], cl
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete al
mov byte [ebx + 4], al
je 0x10043bdc
mov eax, dword [ebx]
test eax, eax
je 0x10043b84
push eax
call fcn.1007686c
add esp, 4
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x10043b9a
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10043b90
lea eax, [ecx + 1]
mov edx, 2
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10076871
mov ecx, eax
add esp, 4
mov dword [ebx], ecx
movzx eax, word [edi]
mov edx, eax
test ax, ax
je 0x10043bd7
sub edi, ecx
mov word [ecx], dx
add ecx, 2
movzx eax, word [edi + ecx]
mov edx, eax
test ax, ax
jne 0x10043bc6
xor eax, eax
mov word [ecx], ax
mov byte [ebp - 4], 5
cmp byte [ebp - 0x14], 0
je 0x10043bfd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
movzx ecx, byte [ebp - 0x14]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x14], cl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10043c89
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10043c89
mov eax, dword [ebx]
test eax, eax
je 0x10043c2d
push eax
call fcn.1007686c
add esp, 4
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x10043c40
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10043c36
lea eax, [ecx + 1]
mov edx, 2
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10076871
mov ecx, eax
add esp, 4
mov dword [ebx], ecx
movzx eax, word [edi]
mov edx, eax
test ax, ax
je 0x10043c81
sub edi, ecx
nop dword [eax]
mov word [ecx], dx
add ecx, 2
movzx eax, word [edi + ecx]
mov edx, eax
test ax, ax
jne 0x10043c70
xor eax, eax
mov word [ecx], ax
mov byte [ebx + 4], al
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x440]
xor ecx, ebp
call fcn.1007685e
lea esp, [ebp + 0x444]
pop ebp
ret 4
push 0x80004005
call fcn.100374f0
int3