Function at 0x439240
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x52bfc0]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x439274
xor eax, eax
jmp 0x439547
cmp byte [ebp + 0xc], 1
jne 0x43927f
call fcn.00441550
mov ecx, 0x2e
mov edx, 0x6e
mov eax, 0x65
mov word [ebp - 0x10], cx
mov word [ebp - 0xe], dx
mov word [ebp - 0xc], ax
xor edx, edx
mov ecx, 0x77
xor eax, eax
mov word [ebp - 0xa], cx
mov word [ebp - 8], dx
test esi, esi
je 0x4392d8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4392c2
xor eax, eax
jmp 0x4392d8
lea edi, [eax + eax]
mov eax, edi
call fcn.00474ed0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00446ad0
push ebx
mov edi, eax
call fcn.0044fdf0
mov edi, eax
add esp, 4
mov dword [ebp - 0x450], edi
test edi, edi
je 0x43926d
call fcn.0044ff80
mov esi, eax
test esi, esi
je 0x439320
cmp dword [edi], 2
sete al
test al, al
je 0x439314
call fcn.00450950
mov eax, esi
jmp 0x439547
call fcn.0044ffb0
mov eax, esi
jmp 0x439547
push 0xffffffffffffffff
lea eax, [ebp - 0x448]
mov ecx, edi
call fcn.0044fef0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x43952f
mov ecx, dword [0x52a928]
mov eax, dword [ebp - 0x448]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push ebx
push ebx
push 0x4c9
push ecx
mov dword [ebp - 0x454], eax
call esi
push str.Decompress_files._Please_wait.
mov edx, 0x52a948
call fcn.0040a600
mov edx, dword [0x52a928]
add esp, 4
push ebx
push ebx
push 0x4c8
push edx
call esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00473d40
xor esi, esi
add esp, 0xc
cmp dword [ebp - 0x454], esi
jle 0x43952f
lea esp, [esp]
mov edx, dword [0x52bfc0]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x439512
push esi
lea eax, [ebp - 0x448]
mov ecx, edi
call fcn.0044fef0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x43952f
lea eax, [ebp - 0x444]
push eax
push 0x511a0c
push 0x511a14
lea edx, [ebp - 0x218]
call fcn.0040a600
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x439427
push 0x80
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebp - 0x450]
mov ecx, esi
call fcn.0044ff40
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x439516
cmp edi, 0xffffffff
je 0x43945b
push edi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp + 0xc], 1
jne 0x43948d
test byte [ebp - 0x23c], 0x10
jne 0x43948d
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x444]
push eax
call fcn.0046f5eb
add esp, 8
test eax, eax
je 0x43948d
lea ecx, [ebp - 0x448]
push ecx
call fcn.004414a0
inc esi
mov dword [ebp - 0x44c], esi
fild dword [ebp - 0x44c]
push 0
fidiv dword [ebp - 0x454]
fstp dword [ebp - 0x44c]
fld dword [ebp - 0x44c]
fimul dword [0x52a934]
fnstcw word [ebp - 0x44a]
movzx eax, word [ebp - 0x44a]
or eax, 0xc00
mov dword [ebp - 0x45c], eax
mov eax, dword [0x52a928]
fldcw word [ebp - 0x45c]
fistp qword [ebp - 0x460]
mov edx, dword [ebp - 0x460]
push edx
push 0x4c9
fldcw word [ebp - 0x44a]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, dword [ebp - 0x454]
mov edi, dword [ebp - 0x450]
jl 0x4393b0
jmp 0x43952f
xor ebx, ebx
jmp 0x43952f
cmp edi, 0xffffffff
je 0x439529
push edi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [ebp - 0x450]
cmp dword [edi], 2
sete al
test al, al
je 0x439540
call fcn.00450950
jmp 0x439545
call fcn.0044ffb0
mov eax, ebx
lea esp, [ebp - 0x470]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret