Function at 0x424600
Capabilities:
Check if file exists
Copy file
Create directory
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495cc3
mov eax, dword fs:[0]
push eax
sub esp, 0x390
mov eax, dword [0x4c206c]
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 dword [ebp - 0x398], ecx
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x424731
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x424731
call ebx
push 7
push str.trivial
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov edi, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041ccc0
sub esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push 0x13e
push str.d:workqninstall_srccommonutilfunc.h
push str.int___cdecl_UtilFunc::MoveFolder_class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______int_
push 8
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041bed0
mov esi, eax
mov byte [ebp - 4], 3
mov al, byte [esi + 0xf8]
test al, al
je 0x4246ee
mov eax, dword [esi + 0x28]
mov edx, str.CreateDirectory
mov eax, dword [eax + 0x54]
lea ecx, [eax + 0x10]
call fcn.0041d1c0
mov al, byte [esi + 0xf8]
test al, al
je 0x4246ee
mov eax, dword [esi + 0x28]
push edi
mov ecx, dword [eax + 0x54]
add ecx, 0x10
call fcn.00411910
lea ecx, [ebp - 0x130]
call fcn.00412bf0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x424731
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424727
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424e2c
push edx
push ecx
call fcn.00459719
add esp, 8
lea ecx, [ebp + 8]
call fcn.00401890
lea ecx, [ebp + 0xc]
call fcn.00401890
push 0x250
lea eax, [ebp - 0x380]
push 0
push eax
call fcn.00471be0
push 0x4acdf0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x394]
call fcn.00422ac0
add esp, 0x10
lea ecx, [ebp - 0x380]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x394]
mov esi, eax
or edi, 0xffffffff
mov dword [ebp - 0x38c], esi
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4247a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
jne 0x4247ad
xor esi, esi
jmp 0x424dd1
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
nop dword [eax]
nop word [eax + eax]
test byte [ebp - 0x380], 0x10
lea eax, [ebp - 0x354]
je 0x424838
push 0x4acdf4
push eax
call esi
test eax, eax
je 0x424ba1
push 0x4acdf8
lea eax, [ebp - 0x354]
push eax
call esi
test eax, eax
je 0x424ba1
push ecx
lea eax, [ebp - 0x354]
mov dword [ebp - 0x390], esp
mov ecx, esp
lea edx, [ebp + 0xc]
push eax
call fcn.00422ac0
lea eax, [ebp - 0x354]
mov byte [ebp - 4], 4
mov ecx, esp
lea edx, [ebp + 8]
push eax
call fcn.00422ac0
add esp, 4
mov byte [ebp - 4], 1
xor ecx, ecx
call fcn.00424600
add esp, 8
jmp 0x424ba1
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x384]
call fcn.00422ac0
lea eax, [ebp - 0x354]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x388]
call fcn.00422ac0
add esp, 8
mov byte [ebp - 4], 6
xor edi, edi
nop dword [eax]
push dword [ebp - 0x388]
push dword [ebp - 0x384]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x390], eax
test eax, eax
jne 0x424b50
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
push 7
push str.trivial
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov ebx, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041ccc0
sub esp, 0xc
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
push 0x16b
push str.d:workqninstall_srccommonutilfunc.h
push str.int___cdecl_UtilFunc::MoveFolder_class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______int_
push 8
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041bed0
mov esi, eax
mov byte [ebp - 4], 8
mov al, byte [esi + 0xf8]
test al, al
je 0x424924
mov eax, dword [esi + 0x28]
mov edx, str.MoveFile
mov eax, dword [eax + 0x54]
lea ecx, [eax + 0x10]
call fcn.0041d1c0
mov al, byte [esi + 0xf8]
test al, al
je 0x424924
mov eax, dword [esi + 0x28]
push ebx
mov ecx, dword [eax + 0x54]
add ecx, 0x10
call fcn.00411910
lea ecx, [ebp - 0x130]
call fcn.00412bf0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x424967
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42495d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424e2c
push edx
push ecx
call fcn.00459719
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
inc edi
cmp edi, 5
jl 0x424870
mov eax, dword [ebp - 0x390]
test eax, eax
jne 0x424b50
push 7
push str.trivial
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.0041ccc0
sub esp, 0xc
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
push 0x170
push str.d:workqninstall_srccommonutilfunc.h
push str.int___cdecl_UtilFunc::MoveFolder_class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______int_
push 8
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041bed0
mov esi, eax
mov byte [ebp - 4], 0xa
cmp byte [esi + 0xf8], 0
mov edi, dword [ebp - 0x384]
je 0x4249f1
mov ecx, dword [esi + 0x28]
mov edx, 0x4acfc8
mov ecx, dword [ecx + 0x54]
add ecx, 0x10
call fcn.0041d1c0
push edi
mov ecx, esi
call fcn.00423cf0
lea ecx, [ebp - 0x130]
call fcn.00412bf0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x424a3c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424a32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424e2c
push edx
push ecx
call fcn.00459719
add esp, 8
xor edi, edi
nop
push 0
push dword [ebp - 0x388]
push dword [ebp - 0x384]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x424b50
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
push 7
push str.trivial
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov ebx, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041ccc0
sub esp, 0xc
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x28]
push 0x17d
push str.d:workqninstall_srccommonutilfunc.h
push str.int___cdecl_UtilFunc::MoveFolder_class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______int_
push 8
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041bed0
mov esi, eax
mov byte [ebp - 4], 0xc
mov al, byte [esi + 0xf8]
test al, al
je 0x424af0
mov eax, dword [esi + 0x28]
mov edx, str.CopyFile
mov eax, dword [eax + 0x54]
lea ecx, [eax + 0x10]
call fcn.0041d1c0
mov al, byte [esi + 0xf8]
test al, al
je 0x424af0
mov eax, dword [esi + 0x28]
push ebx
mov ecx, dword [eax + 0x54]
add ecx, 0x10
call fcn.00411910
lea ecx, [ebp - 0x130]
call fcn.00412bf0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x424b33
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424b29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424e2c
push edx
push ecx
call fcn.00459719
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
inc edi
cmp edi, 5
jl 0x424a40
cmp dword [ebp - 0x398], 0
je 0x424c9c
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov edx, dword [ebp - 0x388]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424b74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x384]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424b95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x380]
push eax
push dword [ebp - 0x38c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4247c0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x424dbd
call ebx
push 7
push str.trivial
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov edi, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041ccc0
sub esp, 0xc
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x28]
push 0x18f
push str.d:workqninstall_srccommonutilfunc.h
push str.int___cdecl_UtilFunc::MoveFolder_class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______int_
push 8
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041bed0
mov esi, eax
mov byte [ebp - 4], 0x10
mov al, byte [esi + 0xf8]
test al, al
je 0x424c56
mov eax, dword [esi + 0x28]
mov edx, str.RemoveDirectory
mov eax, dword [eax + 0x54]
lea ecx, [eax + 0x10]
call fcn.0041d1c0
mov al, byte [esi + 0xf8]
test al, al
je 0x424c56
mov eax, dword [esi + 0x28]
push edi
mov ecx, dword [eax + 0x54]
add ecx, 0x10
call fcn.00411910
lea ecx, [ebp - 0x130]
call fcn.00412bf0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x424dab
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424da1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424e31
jmp 0x424da1
push 7
push str.trivial
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041ccc0
sub esp, 0xc
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x28]
push 0x183
push str.d:workqninstall_srccommonutilfunc.h
push str.int___cdecl_UtilFunc::MoveFolder_class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______int_
push 8
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041bed0
mov esi, eax
mov byte [ebp - 4], 0xe
cmp byte [esi + 0xf8], 0
mov edi, dword [ebp - 0x384]
je 0x424d0d
mov ecx, dword [esi + 0x28]
mov edx, str.copyfile
mov ecx, dword [ecx + 0x54]
add ecx, 0x10
call fcn.0041d1c0
push edi
mov ecx, esi
call fcn.00423cf0
lea ecx, [ebp - 0x130]
call fcn.00412bf0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x424d58
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424d4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424e36
push edx
push ecx
call fcn.00459719
add esp, 8
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov edx, dword [ebp - 0x388]
xor esi, esi
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424d7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x384]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424dc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x424dc5
push edx
push ecx
call fcn.00459719
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov esi, 1
or edi, 0xffffffff
push dword [ebp - 0x38c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424def
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x424e0e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.004591b7
mov esp, ebp
pop ebp
ret
call fcn.00474c79
call fcn.00474c79
call fcn.00474c79
int3