Function at 0x10038b20
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a86eb
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x100c66d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x154], esi
cmp dword [esi + 0x10], ebx
je 0x10038c71
cmp dword [edi + 0x10], ebx
je 0x10038c71
cmp dword [edi + 0x14], 8
jb 0x10038b7e
mov eax, dword [edi]
jmp 0x10038b80
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x10038c71
mov ecx, edi
call fcn.10037bc0
test al, al
je 0x10038bd8
cmp dword [esi + 0x10], ebx
je 0x10038bcf
cmp dword [esi + 0x14], 8
jb 0x10038bae
mov eax, dword [esi]
jmp 0x10038bb0
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x10038bcf
mov ecx, esi
call fcn.10037bc0
test al, al
je 0x10038c71
push esi
call fcn.10037fe0
add esp, 4
mov esi, 7
xor eax, eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], ax
mov dword [ebp - 4], ebx
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
lea edx, [ebp - 0x48]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14c], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 1
push ebx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edi
mov word [ecx], ax
call fcn.10005150
lea ecx, [ebp - 0xb8]
call fcn.10038780
add esp, 0x20
cmp al, bl
jne 0x10038c78
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x10038c4e
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0xa4], edi
jb 0x10038c71
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1003d468
add esp, 4
xor al, al
jmp 0x10039256
xor ecx, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
xor edx, edx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x154]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14c], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 3
push ebx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.10005150
lea ecx, [ebp - 0x64]
call fcn.10038780
add esp, 0x20
cmp al, bl
jne 0x10038cf4
lea ecx, [ebp - 0x80]
call fcn.10004230
lea ecx, [ebp - 0x64]
call fcn.10004230
lea ecx, [ebp - 0x48]
call fcn.10004230
lea ecx, [ebp - 0xb8]
call fcn.10004230
xor al, al
jmp 0x10039256
mov ecx, edi
call fcn.10037bc0
test al, al
jne 0x10038de8
lea ecx, [ebp - 0x64]
push ecx
call fcn.10037fe0
add esp, 4
test al, al
je 0x10038cca
cmp dword [ebp - 0x70], ebx
lea ebx, [ebp - 0x48]
je 0x10038d1e
lea ebx, [ebp - 0x80]
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.10039b80
add esp, 8
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10037d60
mov edi, dword [ebp - 0x148]
test al, al
je 0x10038d80
lea ecx, [ebp - 0x2c]
call fcn.10037740
test al, al
je 0x10038d80
lea ecx, [ebp - 0x2c]
call fcn.10004230
lea ecx, [ebp - 0x80]
call fcn.10004230
lea ecx, [ebp - 0x64]
call fcn.10004230
lea ecx, [ebp - 0x48]
call fcn.10004230
lea ecx, [ebp - 0xb8]
call fcn.10004230
jmp 0x10039254
push 1
lea esi, [ebp - 0x2c]
call fcn.100386d0
mov ecx, dword [ebp - 0x2c]
mov eax, 8
add esp, 4
cmp dword [ebp - 0x18], eax
jae 0x10038d9c
mov ecx, esi
cmp dword [edi + 0x14], eax
jb 0x10038da5
mov eax, dword [edi]
jmp 0x10038da7
mov eax, edi
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [ebp - 0x2c]
setne bl
call fcn.10004230
lea ecx, [ebp - 0x80]
call fcn.10004230
lea ecx, [ebp - 0x64]
call fcn.10004230
lea ecx, [ebp - 0x48]
call fcn.10004230
lea ecx, [ebp - 0xb8]
call fcn.10004230
mov al, bl
jmp 0x10039256
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
push ebx
push 1
lea ecx, [ebp - 0x164]
push ecx
push edi
mov byte [ebp - 4], 5
call fcn.100395a0
mov ecx, dword [ebp - 0x160]
mov esi, dword [ebp - 0x164]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x10
add eax, edx
mov dword [ebp - 0x14c], ebx
je 0x100390dc
mov dword [ebp - 0x150], ebx
jmp 0x10038e50
mov eax, dword [ebp - 0x150]
mov edx, dword [edi + 0x10]
mov ecx, dword [eax + esi + 0x10]
add eax, esi
sub ecx, edx
dec ecx
inc edx
push eax
lea esi, [ebp - 0x144]
call fcn.10004290
mov eax, dword [ebp - 0x154]
push 0xffffffffffffffff
mov byte [ebp - 4], 6
push ebx
xor edx, edx
mov edi, 7
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
call fcn.10005150
push 0x5c
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.10034ac0
add esp, 4
push 0x2f
call fcn.10034ac0
add esp, 4
xor ecx, ecx
push 1
mov word [ebp - 0x2c], cx
push 0x100b6220
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.10005fb0
mov byte [ebp - 4], 8
push 1
xor edx, edx
push 0x100b6220
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], dx
call fcn.10005fb0
lea esi, [ebp - 0xd4]
lea eax, [ebp - 0x9c]
lea edi, [ebp - 0x128]
mov byte [ebp - 4], 9
call fcn.10006890
mov esi, eax
lea eax, [ebp - 0x144]
lea edi, [ebp - 0x10c]
mov byte [ebp - 4], 0xa
call fcn.10017470
mov ecx, eax
lea eax, [ebp - 0x2c]
lea edi, [ebp - 0xf0]
mov byte [ebp - 4], 0xb
call fcn.10006920
mov esi, 8
cmp dword [ebp - 0xf8], esi
jb 0x10038f68
mov eax, dword [ebp - 0x10c]
push eax
call fcn.1003d468
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xfc], ebx
mov word [ebp - 0x10c], cx
cmp dword [ebp - 0x114], esi
jb 0x10038f99
mov edx, dword [ebp - 0x128]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], ebx
mov word [ebp - 0x128], ax
cmp dword [ebp - 0xc0], esi
jb 0x10038fc5
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], dx
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x18], esi
jb 0x10038fef
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1003d468
add esp, 4
lea edx, [ebp - 0xf0]
xor ecx, ecx
push edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.10037fe0
mov edx, dword [ebp - 0x150]
add edx, dword [ebp - 0x164]
add esp, 4
lea eax, [ebp - 0xf0]
push eax
push edx
call fcn.10038b20
add esp, 8
cmp dword [ebp - 0xdc], esi
jb 0x1003903d
mov eax, dword [ebp - 0xf0]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], cx
cmp dword [ebp - 0x88], esi
jb 0x10039069
mov edx, dword [ebp - 0x9c]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0x130], esi
jb 0x10039099
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.1003d468
add esp, 4
mov ecx, dword [ebp - 0x160]
mov esi, dword [ebp - 0x164]
mov edi, dword [ebp - 0x14c]
add dword [ebp - 0x150], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [ebp - 0x14c], edi
cmp edi, eax
mov edi, dword [ebp - 0x148]
jb 0x10038e50
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
push ebx
push ebx
lea ecx, [ebp - 0x174]
push ecx
push edi
mov byte [ebp - 4], 0x11
call fcn.100395a0
mov ecx, dword [ebp - 0x170]
mov esi, dword [ebp - 0x174]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x10
xor edi, edi
add eax, edx
je 0x10039174
mov dword [ebp - 0x148], ebx
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 0x148]
push ecx
add edx, esi
push edx
call fcn.10038b20
mov ecx, dword [ebp - 0x170]
mov esi, dword [ebp - 0x174]
add dword [ebp - 0x148], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add esp, 8
cmp edi, eax
jb 0x1003912f
cmp esi, ebx
je 0x10039194
mov edi, dword [ebp - 0x170]
mov eax, esi
call fcn.10006280
mov ecx, dword [ebp - 0x174]
push ecx
call fcn.1003d468
add esp, 4
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
cmp eax, ebx
je 0x100391ca
mov edi, dword [ebp - 0x160]
call fcn.10006280
mov edx, dword [ebp - 0x164]
push edx
call fcn.1003d468
add esp, 4
mov esi, 8
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
cmp dword [ebp - 0x6c], esi
jb 0x100391f2
mov eax, dword [ebp - 0x80]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x50], esi
jb 0x10039214
mov edx, dword [ebp - 0x64]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x34], esi
jb 0x10039231
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0xa4], esi
jb 0x10039254
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1003d468
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c5b5
mov esp, ebp
pop ebp
ret