Function at 0x408bf0
Capabilities:
Copy file
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
sub esp, 0x214
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
mov dword [esp + 0x10], ecx
push edi
mov ecx, esi
xor ebp, ebp
xor edi, edi
call fcn.00407df0
test eax, eax
jbe 0x408fa7
mov dword [esp + 0x10], ebp
lea ebx, [ebx]
mov eax, dword [esi + 4]
test eax, eax
je 0x408c53
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408c58
call fcn.004402b5
mov eax, dword [esi + 4]
cmp dword [eax + ebp], 0
jne 0x408f71
test eax, eax
je 0x408c85
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408c8a
call fcn.004402b5
mov eax, dword [esi + 4]
cmp byte [eax + ebp + 4], 0
je 0x408dd3
test eax, eax
je 0x408cb8
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408cbd
call fcn.004402b5
mov eax, dword [esi + 4]
lea eax, [eax + ebp + 0x40]
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x408cd3
mov eax, dword [eax + 4]
jmp 0x408cd6
add eax, 4
push eax
call fcn.0042dba0
add esp, 4
test al, al
je 0x408dc9
mov eax, dword [esi + 4]
test eax, eax
je 0x408d0a
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408d0f
call fcn.004402b5
mov eax, dword [esi + 4]
cmp dword [eax + ebp + 0x20], ebx
jb 0x408d1e
mov ebx, dword [eax + ebp + 0xc]
jmp 0x408d22
lea ebx, [eax + ebp + 0xc]
test eax, eax
je 0x408d42
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408d47
call fcn.004402b5
mov ecx, dword [esi + 4]
cmp dword [ecx + ebp + 0x58], 0x10
lea eax, [ecx + ebp + 0x40]
jb 0x408d5a
mov eax, dword [eax + 4]
jmp 0x408d5d
add eax, 4
push ebx
push eax
lea edx, [esp + 0x20]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x28]
push eax
call fcn.0042d0c0
add esp, 0x14
test al, al
jne 0x408f71
push edi
mov ecx, esi
call fcn.00407e20
add eax, 0x40
cmp dword [eax + 0x18], 0x10
jb 0x408d9a
mov ebx, dword [eax + 4]
jmp 0x408d9d
lea ebx, [eax + 4]
push edi
mov ecx, esi
call fcn.00407e20
add eax, 0x24
cmp dword [eax + 0x18], 0x10
jb 0x408db3
mov eax, dword [eax + 4]
jmp 0x408db6
add eax, 4
mov ecx, dword [esp + 0x14]
push ebx
push eax
call fcn.00407f70
test eax, eax
jne 0x408f71
mov eax, 8
jmp 0x408fa9
test eax, eax
je 0x408df3
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408df8
call fcn.004402b5
mov eax, dword [esi + 4]
cmp dword [eax + ebp + 0x20], 0x10
jb 0x408e08
mov ebx, dword [eax + ebp + 0xc]
jmp 0x408e0c
lea ebx, [eax + ebp + 0xc]
test eax, eax
je 0x408e2c
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408e31
call fcn.004402b5
mov ecx, dword [esi + 4]
cmp dword [ecx + ebp + 0x3c], 0x10
lea eax, [ecx + ebp + 0x24]
jb 0x408e44
mov eax, dword [eax + 4]
jmp 0x408e47
add eax, 4
push ebx
push eax
lea edx, [esp + 0x124]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi + 4]
add esp, 0x10
test eax, eax
je 0x408e82
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408e87
call fcn.004402b5
mov eax, dword [esi + 4]
cmp dword [eax + ebp + 0x20], 0x10
jb 0x408e97
mov ebx, dword [eax + ebp + 0xc]
jmp 0x408e9b
lea ebx, [eax + ebp + 0xc]
test eax, eax
je 0x408ebb
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408ec0
call fcn.004402b5
mov eax, dword [esi + 4]
cmp dword [eax + ebp + 0x58], 0x10
lea eax, [eax + ebp + 0x40]
jb 0x408ed3
mov eax, dword [eax + 4]
jmp 0x408ed6
add eax, 4
push ebx
push eax
lea ecx, [esp + 0x20]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi + 4]
add esp, 0x10
test eax, eax
je 0x408f0e
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408f13
call fcn.004402b5
mov edx, dword [esi + 4]
cmp dword [edx + ebp + 0x58], 0x10
lea eax, [edx + ebp + 0x40]
jb 0x408f26
mov eax, dword [eax + 4]
jmp 0x408f29
add eax, 4
push eax
call fcn.0042dba0
add esp, 4
test al, al
je 0x408dc9
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x408fc4
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x408f71
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, ebx
div dword [ecx + 0x720]
push 1
push eax
call fcn.00407fa0
add ebx, 0x1d
mov ecx, esi
add edi, 1
add ebp, 0x78
mov dword [esp + 0x10], ebx
call fcn.00407df0
cmp edi, eax
jb 0x408c30
xor eax, eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044017c
add esp, 0x214
ret 4
mov eax, 9
jmp 0x408fa9