Function at 0x40b600
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x6377a0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov esi, dword [ebp + 0x25c]
mov bl, 1
mov eax, dword [ebp + 0x264]
mov edi, dword [ebp + 0x260]
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], edi
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
test eax, eax
jne 0x40b67c
mov eax, 0x649aa0
push dword [esi + 4]
lea ecx, [ebp - 0x54]
push eax
call fcn.00403940
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x40b69b
mov ecx, 0x649aa0
mov edx, dword [ebp - 0x50]
dec edx
cmp word [ecx + edx*2], 0x5c
je 0x40b6b9
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x40b6b2
mov eax, 0x649aa0
cmp word [eax + edx*2], 0x2f
jne 0x40b6c2
push edx
lea ecx, [ebp - 0x54]
call fcn.00409ed0
push str..
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040a160
push 0x250
lea eax, [ebp]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004b40a0
mov eax, dword [ebp - 0x70]
add esp, 0x18
test eax, eax
jne 0x40b6f7
mov eax, 0x649aa0
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x64], eax
cmp eax, 0xffffffff
je 0x40bb30
mov edi, edi
test bl, bl
je 0x40bb30
mov ecx, 0x64d9e4
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b746
test dx, dx
je 0x40b742
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b746
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b720
xor eax, eax
jmp 0x40b74b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40ba6e
mov ecx, 0x64d9e8
lea eax, [ebp + 0x2c]
jmp 0x40b760
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b786
test dx, dx
je 0x40b782
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b786
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b760
xor eax, eax
jmp 0x40b78b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40ba6e
mov eax, dword [edi]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
test eax, eax
jne 0x40b7b3
mov eax, 0x649aa0
push dword [edi + 4]
lea ecx, [ebp - 0x34]
push eax
call fcn.00403940
mov eax, dword [esi]
mov byte [ebp - 4], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
test eax, eax
jne 0x40b7e3
mov eax, 0x649aa0
push dword [esi + 4]
lea ecx, [ebp - 0x40]
push eax
call fcn.00403940
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ecx]
mov dword [ebp - 0x20], 0
test eax, eax
jne 0x40b816
mov eax, 0x649aa0
push dword [ecx + 4]
lea ecx, [ebp - 0x28]
push eax
call fcn.00403940
push 0xffffffffffffffff
push 0x64d1fc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00403940
lea esi, [ebp + 0x2c]
mov byte [ebp - 4], 5
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40b854
mov ebx, dword [ebp - 0x18]
sub esi, ecx
sar esi, 1
mov edi, dword [ebp - 0x1c]
je 0x40b8c8
mov eax, dword [ebp - 0x14]
sub eax, ebx
cmp esi, eax
jbe 0x40b8a5
lea eax, [ebx + 0x20]
add eax, esi
and eax, 0xffffffe0
mov dword [ebp - 0x5c], eax
add eax, eax
push eax
push edi
call fcn.00446560
add esp, 8
test eax, eax
je 0x40b8c8
test edi, edi
jne 0x40b899
xor ecx, ecx
mov word [eax + ebx*2], cx
mov edi, eax
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
lea ecx, [edi + ebx*2]
test esi, esi
jle 0x40b8bd
lea eax, [esi + esi]
push eax
lea eax, [ebp + 0x2c]
push eax
push ecx
call fcn.004b3b20
add esp, 0xc
add ebx, esi
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [edi + ebx*2], ax
mov eax, 0x649aa0
test edi, edi
je 0x40b8d3
mov eax, edi
push ebx
push eax
lea ecx, [ebp - 0x34]
call fcn.004031a0
mov eax, 0x649aa0
test edi, edi
je 0x40b8e8
mov eax, edi
push ebx
push eax
lea ecx, [ebp - 0x40]
call fcn.004031a0
mov eax, 0x649aa0
test edi, edi
je 0x40b8fd
mov eax, edi
push ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.004031a0
test byte [ebp], 0x10
je 0x40b978
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x40b919
mov esi, 0x649aa0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b958
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b960
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._Cant_create_directory__s._Error_code:_0x_X.
push 1
push 0x2cd
push str.e:workprgpdf5_builds_rc.328_trackerupdateinstallmanager.cpp
call fcn.00431810
add esp, 0x18
jmp 0x40baa2
test al, 0x10
je 0x40ba88
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x28]
push 0
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040b600
jmp 0x40b9bb
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x40b984
mov ecx, 0x649aa0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40b990
mov eax, 0x649aa0
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push ecx
push eax
call ebx
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x40b9a6
mov ecx, 0x649aa0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x40b9b2
mov eax, 0x649aa0
push ecx
push eax
call ebx
test eax, eax
setne al
mov bl, byte [ebp - 0xd]
and bl, al
mov byte [ebp - 0xd], bl
mov byte [ebp - 4], 0xa
test edi, edi
je 0x40b9d4
push edi
call fcn.00446420
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x40b9fd
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x40ba26
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x40ba4f
push eax
call fcn.00446420
add esp, 4
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
lea eax, [ebp]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b710
jmp 0x40bb30
push esi
push str._Cant_create_directory__s__because_file_is_exists_with_this_name
push 1
push 0x2d5
push str.e:workprgpdf5_builds_rc.328_trackerupdateinstallmanager.cpp
call fcn.00431810
add esp, 0x14
xor bl, bl
mov byte [ebp - 4], 6
test edi, edi
je 0x40bab5
push edi
call fcn.00446420
add esp, 4
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 7
test eax, eax
je 0x40bac9
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 8
test eax, eax
je 0x40baf2
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 9
test eax, eax
je 0x40bb1b
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
cmp byte [ebp + 0x268], 0
je 0x40bbcd
test bl, bl
je 0x40bb6b
mov edi, dword [ebp - 0x44]
mov eax, dword [edi]
test eax, eax
jne 0x40bb4f
mov eax, 0x649aa0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
test eax, eax
jne 0x40bb66
mov eax, 0x649aa0
push eax
call esi
jmp 0x40bbcd
mov esi, dword [ebp - 0x58]
mov eax, dword [esi]
test eax, eax
jne 0x40bb79
mov eax, 0x649aa0
mov edi, dword [ebp - 0x44]
mov ecx, dword [edi]
test ecx, ecx
jne 0x40bb87
mov ecx, 0x649aa0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test eax, eax
je 0x40bbaa
mov eax, dword [edi]
test eax, eax
jne 0x40bba3
mov eax, 0x649aa0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi]
test ecx, ecx
jne 0x40bbb5
mov ecx, 0x649aa0
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
test eax, eax
jne 0x40bbc3
mov eax, 0x649aa0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x70]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x40bbe1
push eax
call fcn.00446420
add esp, 4
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 0xf
test eax, eax
je 0x40bbf8
push eax
call fcn.00446420
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004b2558
lea esp, [ebp + 0x254]
pop ebp
ret 0x10