Function at 0x4397a0
Capabilities:
Check if file exists
Copy file
Create thread
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4397a9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004039c4
mov eax, dword [ebp - 8]
call fcn.00404960
mov eax, dword [ebp + 0x10]
call fcn.00404960
xor eax, eax
push ebp
push 0x43a0db
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
mov edx, dword [0x405cb0]
call fcn.0040451c
lea eax, [ebp - 0x48]
mov edx, dword [0x405cb0]
call fcn.0040451c
lea eax, [ebp - 0x4c]
mov edx, dword [0x405cb0]
call fcn.0040451c
test esi, esi
je 0x43981a
xor eax, eax
mov dword [esi], eax
cmp byte [ebp + 0x14], 0
je 0x4398d0
cmp byte [ebp + 0xc], 0
jne 0x4398d0
mov eax, 0xfa
call fcn.00428e44
test al, al
jne 0x4398d0
cmp dword [ebp - 0xc], 0
je 0x43985b
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetWindowPos
push 0x10
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00403648
lea eax, [ebx + 4]
mov edx, dword [ebp - 8]
call fcn.00404918
mov al, byte [ebp + 0x18]
mov byte [ebx + 8], al
lea eax, [ebx + 0xc]
mov edx, dword [ebp + 0x10]
call fcn.00404918
lea eax, [ebp - 0x54]
push eax
push 0
push ebx
push 0x439760
push 0
push 0
call sub.kernel32.dll_CreateThread_1
test eax, eax
je 0x4398bd
mov bl, 1
test esi, esi
je 0x4398b2
mov dword [esi], eax
jmp 0x43a03e
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x43a03e
mov eax, ebx
mov edx, dword [0x439724]
call fcn.00403f18
push ebx
call sub.kernel32.dll_LocalFree_1
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2a8]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2b0]
lea edx, [ebp - 0x34]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
lea edx, [ebp - 0x58]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x148]
cmp dword [ebp - 0x58], 0
jne 0x439978
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
cmp dword [ebp - 0x5c], 0
je 0x439978
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
lea eax, [ebp - 0x30]
call fcn.004349c0
dec eax
jle 0x439959
lea eax, [ebp - 0x58]
push eax
mov cl, 0x2c
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.0040826c
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x30]
call fcn.0040368c
lea ecx, [ebp - 0x58]
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.00434a04
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x30]
mov edx, 0x43a0f8
call fcn.0040385c
jmp 0x439986
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x148]
lea eax, [ebp - 0x10]
call fcn.004035f4
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x43a10c
call fcn.00407448
mov ebx, eax
test ebx, ebx
jle 0x439a08
push 0x7fffffff
lea ecx, [ebx + 0xa]
mov edx, dword [ebp - 4]
mov eax, 0x43a12c
call fcn.00407448
mov esi, eax
test esi, esi
jle 0x439a08
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
sub ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00403a14
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, 0x43a138
call fcn.00407448
mov ebx, eax
lea eax, [ebp - 0x10]
mov ecx, ebx
mov edx, 1
call fcn.00403a54
lea eax, [ebp - 0x10]
call fcn.00406cec
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0xc]
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
call fcn.0042930c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0xc]
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
call fcn.0042930c
lea eax, [ebp - 0x40]
call fcn.0043499c
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x20]
call fcn.004035f4
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0xe0]
test al, al
jne 0x439a8a
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0xe8]
test al, al
jne 0x439a8a
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
jne 0x439a8a
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0xf8]
test al, al
je 0x439d2d
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x154]
test al, al
je 0x439bef
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 0x10]
call fcn.00438ab0
mov eax, dword [ebp - 0x20]
call fcn.00403810
cmp eax, 2
jle 0x439ac6
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0x5c
je 0x439aef
mov eax, dword [ebp - 0x20]
cmp byte [eax + 1], 0x3a
je 0x439aef
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0xc]
lea edx, [ebp - 0x5c]
call fcn.00427df4
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00427e9c
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
call fcn.0040385c
lea eax, [ebp - 0x14]
call fcn.00427f88
cmp dword [ebp - 0x14], 0
je 0x439bef
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x20]
call fcn.00427e24
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x14]
call fcn.00403818
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x15c]
test al, al
je 0x439b53
push 0
mov eax, dword [ebp - 0x14]
call fcn.004039d4
push eax
mov eax, dword [ebp - 0x20]
call fcn.004039d4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x439b53
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x164]
mov byte [ebp - 0x21], al
jmp 0x439b61
mov eax, dword [ebp - 0x14]
call fcn.004039d4
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x15c]
test al, al
je 0x439b96
lea eax, [ebp - 0x3c]
call fcn.00404900
push eax
push 0x43a13c
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [eax]
call dword [eax]
test eax, eax
jne 0x439b96
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x439ba9
push 1
mov eax, dword [ebp + 0x10]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.00438fa4
mov eax, dword [ebp - 0x14]
call fcn.004039d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x439bef
lea edx, [ebp - 0x58]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x174]
mov eax, dword [ebp - 0x58]
push eax
push 0x43a154
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x16c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
cmp dword [ebp - 8], 0
je 0x439ca4
lea eax, [ebp - 0x14]
call fcn.00427f88
cmp dword [ebp - 0x14], 0
je 0x439ca4
lea eax, [ebp - 0x14]
mov edx, 0x43a168
call fcn.00403818
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x17c]
cmp eax, 0x19000
jg 0x439c3a
je 0x439c52
sub eax, 4
je 0x439c4a
sub eax, 0xc7fc
je 0x439c4e
jmp 0x439c5e
sub eax, 0x32000
je 0x439c56
sub eax, 0x19000
je 0x439c5a
jmp 0x439c5e
mov bl, 1
jmp 0x439c60
mov bl, 2
jmp 0x439c60
mov bl, 3
jmp 0x439c60
mov bl, 4
jmp 0x439c60
mov bl, 5
jmp 0x439c60
xor ebx, ebx
mov ecx, ebx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x24]
test al, al
je 0x439ca4
lea edx, [ebp - 0x58]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x194]
mov eax, dword [ebp - 0x58]
push eax
push 0x43a180
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x18c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x19c]
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x439d05
inc esi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x19c]
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x10]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0x18]
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x40]
mov edi, dword [eax]
call dword [edi + 0x1c]
inc ebx
dec esi
jne 0x439cc4
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov al, byte [ebp + 0x18]
push eax
mov al, byte [ebp + 0xc]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 0x10]
call fcn.00434abc
jmp 0x439d35
lea eax, [ebp - 0x50]
call fcn.00404900
lea edx, [ebp - 0x64]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x150]
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp dword [ebp - 0x30], 0
je 0x439d64
mov ecx, dword [ebp - 0x30]
mov edx, 0x43a194
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x28]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0xe0]
test al, al
je 0x439dc6
cmp dword [ebp - 0x34], 0
je 0x439db9
call fcn.00435074
test al, al
je 0x439db9
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0x19
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
xor eax, eax
call fcn.004387c0
test al, al
jne 0x439dbd
xor eax, eax
jmp 0x439dbf
mov al, 1
mov bl, al
jmp 0x439f27
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0xe8]
test al, al
je 0x439e7e
cmp dword [ebp - 0x34], 0
je 0x439e71
lea edx, [ebp - 0x58]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x108]
cmp dword [ebp - 0x58], 0
je 0x439e71
call fcn.00435074
test al, al
je 0x439e71
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x4c]
push eax
push 0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x108]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x118]
mov eax, dword [ebp - 0x68]
push eax
lea edx, [ebp - 0x6c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x120]
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x110]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
xor eax, eax
call fcn.004387c0
test al, al
jne 0x439e75
xor eax, eax
jmp 0x439e77
mov al, 1
mov bl, al
jmp 0x439f27
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x439f25
lea edx, [ebp - 0x58]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x128]
cmp dword [ebp - 0x58], 0
je 0x439f1b
call fcn.00435074
test al, al
je 0x439f1b
push 0
push 0
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x38]
push eax
push 0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x138]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x140]
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x130]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0x10]
push eax
lea edx, [ebp - 0x6c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x128]
mov eax, dword [ebp - 0x6c]
xor ecx, ecx
mov edx, dword [ebp - 0x30]
call fcn.004387c0
test al, al
jne 0x439f1f
xor eax, eax
jmp 0x439f21
mov al, 1
mov bl, al
jmp 0x439f27
xor ebx, ebx
cmp dword [ebp - 0x50], 0
je 0x439f35
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0x38]
test bl, bl
jne 0x439fe2
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0xf8]
test al, al
je 0x439f6c
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov al, byte [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
call fcn.00435240
mov ebx, eax
test bl, bl
jne 0x439fb4
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + pe_nt_image_headers32]
test al, al
je 0x439fb4
cmp byte [ebp + 0x18], 0
jne 0x439fb4
mov byte [ebp - 0x21], 0
cmp dword [ebp - 0xc], 0
je 0x439fa4
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetWindowPos
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
call fcn.004356b0
mov bl, al
test bl, bl
jne 0x439fe2
cmp byte [ebp + 0x18], 0
jne 0x439fe2
push 0x10
push 0
lea edx, [ebp - 0x58]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x300]
mov eax, dword [ebp - 0x58]
call fcn.004039d4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_MessageBoxA_1
cmp bl, 1
jne 0x43a03e
lea eax, [ebp - 0x3c]
call fcn.00404900
push eax
push 0x43a13c
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [eax]
call dword [eax]
test eax, eax
jne 0x43a00b
mov dl, 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp byte [ebp - 0x21], 0
je 0x43a03e
cmp dword [ebp - 0x20], 0
je 0x43a03e
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x164]
test al, al
je 0x43a03e
push 0
mov eax, dword [ebp - 0x20]
call fcn.004039d4
mov esi, eax
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a0e5
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.00403618
lea eax, [ebp - 0x64]
call fcn.00404900
lea eax, [ebp - 0x60]
call fcn.00404900
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00403618
lea eax, [ebp - 0x50]
call fcn.00404900
lea eax, [ebp - 0x4c]
mov edx, dword [0x405cb0]
mov ecx, 3
call fcn.00403e38
lea eax, [ebp - 0x40]
call fcn.00404900
lea eax, [ebp - 0x3c]
call fcn.00404900
lea eax, [ebp - 0x38]
call fcn.00404900
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00403618
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00403618
lea eax, [ebp - 8]
call fcn.00404900
lea eax, [ebp - 4]
call fcn.004035f4
lea eax, [ebp + 0x10]
call fcn.00404900
ret