Function at 0x42cf40
Capabilities:
Get common file path
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb912
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.00460860
mov eax, dword [0x504628]
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 eax, dword [0x50ff08]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42e681
mov ecx, dword [0x50ecec]
cmp ecx, ebx
je 0x42e681
call fcn.004368d0
lea esi, [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, dword [esi]
cmp eax, 0x1b7d6a4
jne 0x42e681
mov byte [0x50eac8], 1
cmp dword [0x50eac4], ebx
jne 0x42d024
push 0xa00000
call fcn.0043ca0c
add esp, 4
mov dword [0x50eac4], eax
cmp eax, ebx
jne 0x42d024
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000006
mov edx, 0x50e8a0
mov byte [0x50eac8], bl
call fcn.00407ab0
mov ecx, dword [0x50e884]
add esp, 8
push ebx
push ebx
push 0x4c8
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 6
mov esi, eax
mov edi, 0x4f8170
call fcn.004273d0
add esp, 4
jmp 0x42e681
lea edx, [ebp - 0x1020]
push edx
call fcn.00436ff0
push eax
mov edx, 0x50ff10
mov dword [ebp - 4], ebx
call fcn.0042ef00
lea esi, [ebp - 0x1020]
mov dword [ebp - 4], 0xffffffff
call fcn.004088d0
push ebx
call fcn.0042ed70
push str.Packing_resource_files._Please_wait.
mov edx, 0x50e8a0
mov dword [ebp - 0xfb0], ebx
call fcn.00407ab0
mov eax, dword [0x50e884]
add esp, 4
push ebx
push ebx
push 0x4c8
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [0x50e888]
call fcn.004368d0
lea ecx, [ebp - 0xfe8]
push ecx
mov esi, eax
mov dword [ebp - 0xfb8], ebx
mov dword [ebp - 0xfd0], ebx
mov dword [ebp - 0xfcc], ebx
mov dword [ebp - 0xff8], ebx
call fcn.00436ff0
mov dword [ebp - 4], 1
push 0x206
lea eax, [ebp - 0xd86]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0xf9c], ebx
mov dword [ebp - 0xfa8], ebx
mov dword [ebp - 0xfa0], ebx
mov dword [ebp - 0xfc8], ebx
mov word [ebp - 0xd88], dx
call fcn.0045f850
add esp, 0xc
push 0x206
lea edx, [ebp - 0x666]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x668], cx
call fcn.0045f850
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x86e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x870], ax
call fcn.0045f850
add esp, 0xc
push 0x206
lea eax, [ebp - 0x256]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x258], dx
call fcn.0045f850
add esp, 0xc
push 0x206
lea edx, [ebp - 0x45e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x460], cx
call fcn.0045f850
add esp, 0xc
xor eax, eax
push 0x206
lea ecx, [ebp - 0xa76]
push ebx
push ecx
mov word [ebp - 0xa78], ax
call fcn.0045f850
add esp, 0xc
push 0x103
lea edx, [ebp - 0xb7f]
push ebx
push edx
mov byte [ebp - 0xb80], bl
call fcn.0045f850
add esp, 0xc
lea eax, [ebp - 0xd88]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x50e6c0
push 0x4f765c
push 0x4f7664
lea edx, [ebp - 0xa78]
call fcn.00407ab0
add esp, 0xc
lea eax, [esi + 0xc22]
push eax
push 0x4f765c
push 0x4f7664
lea edx, [ebp - 0x258]
mov dword [ebp - 0xfec], eax
call fcn.00407ab0
add esp, 0xc
push str..dat
push 0x50e6c0
push 0x4f765c
push str._s_s_s
lea edx, [ebp - 0x460]
call fcn.00407ab0
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 0x10
push 7
lea ecx, [ebp - 0x258]
push ecx
call edi
push 7
lea edx, [ebp - 0x460]
push edx
call edi
push 0x4f78c4
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0xf9c]
push ecx
call fcn.0045affb
mov eax, dword [ebp - 0xf9c]
add esp, 0xc
cmp eax, ebx
je 0x42d3fe
push eax
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0045d40d
add esp, 0x10
cmp eax, ebx
jg 0x42d27b
mov dword [ebp - 0xfb8], ebx
jmp 0x42d2bc
mov eax, dword [ebp - 0xf9c]
push eax
push 1
lea ecx, [ebp - 0xfb8]
push 4
push ecx
call fcn.0045d40d
add esp, 0x10
cmp eax, ebx
jg 0x42d2a1
mov dword [ebp - 0xfb8], ebx
jmp 0x42d2bc
mov eax, dword [ebp - 0xfb8]
mov ecx, eax
shl ecx, 0xd
shr eax, 0x13
or eax, ecx
xor eax, 0x9b540b19
mov dword [ebp - 0xfb8], eax
push 0x30
lea edx, [ebp - 0x1060]
push ebx
push edx
call fcn.0045f850
add esp, 0xc
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebp - 0x258]
push ecx
call fcn.0045dc84
mov eax, dword [ebp - 0xfb8]
add esp, 8
cmp eax, ebx
jbe 0x42d374
mov edx, dword [ebp - 0x104c]
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add edx, 0xfffffff4
add ecx, ecx
cmp ecx, edx
je 0x42d374
mov ecx, dword [ebp - 0xf9c]
lea edx, [ebp - 0x460]
push edx
push ebx
lea eax, [ebp - 0x258]
push eax
push ecx
mov byte [0x50eac8], bl
call fcn.0042ce50
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000008
mov edx, 0x50e8a0
call fcn.00407ab0
mov edx, dword [0x50e884]
add esp, 0x18
push ebx
push ebx
push 0x4c8
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
mov esi, eax
mov edi, str.Cant_Pack_Resource_File.
call fcn.004273d0
add esp, 4
jmp 0x42e676
push eax
call fcn.0042ed70
mov ecx, 0x50ff10
call fcn.0042ed00
test eax, eax
jbe 0x42d3e9
mov eax, dword [ebp - 0xf9c]
mov ecx, dword [ebp - 0xfb8]
push eax
push ecx
push 0x1c
xor esi, esi
call fcn.0042edb0
push eax
call fcn.0045d40d
mov ecx, dword [0x50ecec]
add esp, 0x10
call fcn.004368d0
mov ecx, dword [0x50e88c]
push eax
call fcn.004368d0
push eax
mov eax, dword [ebp - 0xfb8]
lea edx, [eax*8]
sub edx, eax
add edx, edx
add edx, edx
push edx
call fcn.0042edb0
lea edx, [ebp - 0xfd0]
mov ecx, eax
call fcn.00436580
add esp, 0xc
mov eax, dword [ebp - 0xf9c]
push eax
call fcn.0045b48f
add esp, 4
mov dword [ebp - 0xf9c], ebx
lea ecx, [ebp - 0xb80]
push ecx
lea esi, [ebp - 0xa78]
call fcn.00436eb0
lea edx, [ebp - 0xfe8]
add esp, 4
push edx
lea ecx, [ebp - 0xfb0]
lea edx, [ebp - 0xb80]
call fcn.0042cbe0
mov ecx, dword [ebp - 0xfd8]
sub ecx, dword [ebp - 0xfdc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 4
cmp eax, ebx
mov dword [ebp - 0xfb4], eax
jle 0x42e670
mov ecx, dword [0x50ff20]
sub ecx, dword [0x50ff1c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0xff0], esi
cmp dword [ebp - 0xfb0], ebx
jne 0x42d658
push 6
lea eax, [ebp - 0x460]
push eax
call edi
push 0x4f824c
lea ecx, [ebp - 0x460]
push ecx
lea edx, [ebp - 0xfa0]
push edx
call fcn.0045affb
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
cmp eax, ebx
je 0x42d567
push 2
push ebx
push eax
call fcn.0045cedd
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
push eax
call fcn.0045d0ff
mov ecx, dword [ebp - 0xfa0]
add esp, 4
push ebx
push ebx
push ecx
mov edi, eax
call fcn.0045cedd
add esp, 0xc
cmp esi, ebx
jle 0x42d658
cmp edi, 1
jg 0x42d658
mov eax, dword [ebp - 0xfa0]
lea edx, [ebp - 0x460]
push edx
push eax
lea ecx, [ebp - 0x258]
push ecx
push ebx
mov byte [0x50eac8], bl
call fcn.0042ce50
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000001
mov edx, 0x50e8a0
call fcn.00407ab0
mov edx, dword [0x50e884]
add esp, 0x18
push ebx
push ebx
push 0x4c8
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
mov esi, eax
mov edi, str.Cant_Pack_Resource_File.
call fcn.004273d0
add esp, 4
jmp 0x42e676
push 0x4f827c
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0xfa0]
push ecx
call fcn.0045affb
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
cmp eax, ebx
je 0x42d5f6
cmp esi, ebx
jle 0x42d658
lea edx, [ebp - 0x460]
push edx
push eax
lea eax, [ebp - 0x258]
push eax
push ebx
mov byte [0x50eac8], bl
call fcn.0042ce50
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000002
mov edx, 0x50e8a0
call fcn.00407ab0
mov ecx, dword [0x50e884]
add esp, 0x18
push ebx
push ebx
push 0x4c8
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
mov edi, str.Cant_Pack_Resource_File.
call fcn.004273d0
add esp, 4
jmp 0x42e676
lea edx, [ebp - 0x460]
push edx
push ebx
lea eax, [ebp - 0x258]
push eax
push ebx
mov byte [0x50eac8], bl
call fcn.0042ce50
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000007
mov edx, 0x50e8a0
call fcn.00407ab0
mov ecx, dword [0x50e884]
add esp, 0x18
push ebx
push ebx
push 0x4c8
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
mov esi, eax
mov edi, str.Cant_Pack_Resource_File.
call fcn.004273d0
add esp, 4
jmp 0x42e676
mov edx, dword [0x50e884]
push ebx
push ebx
push 0x4c9
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0xfb4]
lea esi, [ebp - 0xfc0]
lea edi, [ebp - 0xfe8]
mov dword [ebp - 0xfa4], eax
call fcn.0042ed30
mov ecx, dword [eax]
mov dword [ebp - 0xf98], ecx
mov edi, dword [eax + 4]
mov dword [ebp - 0xf94], edi
lea ebx, [ebx]
mov eax, dword [ebp - 0xfd8]
mov dword [ebp - 0xfac], eax
cmp dword [ebp - 0xfdc], eax
jbe 0x42d6b9
call fcn.0045a4cc
mov esi, dword [ebp - 0xf98]
cmp esi, ebx
je 0x42d6cb
cmp esi, dword [ebp - 0xfe8]
je 0x42d6d0
call fcn.0045a4cc
cmp edi, dword [ebp - 0xfac]
je 0x42dc0f
mov edx, dword [0x50ff08]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42e676
cmp esi, ebx
jne 0x42d813
call fcn.0045a4cc
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x42d70b
call fcn.0045a4cc
lea eax, [ebp - 0xff8]
push eax
lea ecx, [ebp - 0xfbc]
push ecx
lea edx, [edi + 4]
push edx
mov edx, dword [ebp - 0xff0]
call fcn.0042cb00
add esp, 0xc
mov dword [ebp - 0xfac], eax
mov dword [ebp - 0xfb4], ebx
cmp eax, ebx
je 0x42d939
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
cmp dword [ebp - 0xfb0], ebx
jne 0x42d90d
mov ecx, dword [ebp - 0xfac]
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.0042f5a0
add eax, 4
lea esi, [eax + 1]
jmp 0x42d770
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42d770
sub eax, esi
push ebx
push ebx
inc eax
push eax
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
add eax, 4
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
lea eax, [ebp - 0x50]
push eax
push 0xffffffffffffffff
call fcn.0042f5a0
add eax, 4
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0xa78]
push edx
push str._s_s
lea edx, [ebp - 0x870]
call fcn.00407ab0
add esp, 0xc
push 0x4f78c4
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0xfa8]
push ecx
call fcn.0045affb
mov eax, dword [ebp - 0xfa8]
add esp, 0xc
cmp eax, ebx
jne 0x42d81a
mov edx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
lea edi, [ebp - 0x1030]
push edx
lea esi, [ebp - 0xfe8]
call fcn.0042eea0
jmp 0x42d689
mov eax, dword [esi]
jmp 0x42d701
push eax
push 1
lea edx, [ebp - 0xfb4]
push 4
push edx
call fcn.0045d40d
mov eax, dword [ebp - 0xfa8]
add esp, 0x10
push eax
push 1
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
mov ecx, dword [eax + 0x18]
mov edx, dword [0x50eac4]
push ecx
push edx
call fcn.0045d40d
mov eax, dword [ebp - 0xfa8]
push eax
call fcn.0045b48f
add esp, 0x14
mov dword [ebp - 0xfa8], ebx
call fcn.0042f5a0
mov edx, dword [eax + 0x18]
mov esi, dword [0x50eac4]
call fcn.004369e0
cmp dword [ebp - 0xfb4], eax
je 0x42d8ae
mov ecx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
push ecx
lea edi, [ebp - 0x1028]
lea esi, [ebp - 0xfe8]
call fcn.0042eea0
mov edx, dword [eax]
mov dword [ebp - 0xf98], edx
jmp 0x42d691
lea eax, [ebp - 0x870]
push eax
call fcn.0045e0c6
add esp, 4
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
mov ecx, dword [eax]
mov edx, dword [ebp - 0xfa0]
push ebx
push ecx
push edx
call fcn.0045cedd
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
push eax
push 1
call fcn.0042f5a0
mov ecx, dword [eax + 0x18]
mov edx, dword [0x50eac4]
push ecx
push edx
call fcn.0045b1b0
mov eax, dword [ebp - 0xfa0]
push 2
push ebx
push eax
call fcn.0045cedd
add esp, 0x1c
jmp 0x42d913
mov dword [eax], 0xffffffff
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
mov ecx, dword [ebp - 0xfac]
push ecx
mov ecx, 0x1c
mov edx, eax
call fcn.00433500
add esp, 4
jmp 0x42db25
cmp dword [ebp - 0xfb0], ebx
jne 0x42dafe
mov edx, dword [ebp - 0xfa0]
push 2
push ebx
push edx
call fcn.0045cedd
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
push eax
call fcn.0045d0ff
add esp, 4
lea esi, [ebp - 0xf98]
mov dword [ebp - 0xfac], eax
call fcn.0042f5a0
mov ecx, dword [ebp - 0xfac]
mov dword [eax], ecx
call fcn.0042f5a0
add eax, 4
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42d990
sub eax, esi
push ebx
push ebx
inc eax
push eax
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
add eax, 4
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
lea edx, [ebp - 0x50]
push edx
push 0xffffffffffffffff
call fcn.0042f5a0
add eax, 4
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xa78]
push ecx
push str._s_s
lea edx, [ebp - 0x870]
call fcn.00407ab0
add esp, 0xc
push 0x4f78c4
lea edx, [ebp - 0x870]
push edx
lea eax, [ebp - 0xfa8]
push eax
call fcn.0045affb
mov eax, dword [ebp - 0xfa8]
add esp, 0xc
cmp eax, ebx
jne 0x42da3b
mov ecx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
push ecx
lea edi, [ebp - 0x1008]
lea esi, [ebp - 0xfe8]
call fcn.0042eea0
mov edx, dword [eax]
mov dword [ebp - 0xf98], edx
jmp 0x42d691
push eax
push 1
lea eax, [ebp - 0xfb4]
push 4
push eax
call fcn.0045d40d
mov ecx, dword [ebp - 0xfa8]
add esp, 0x10
push ecx
push 1
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
mov edx, dword [eax + 0x18]
mov eax, dword [0x50eac4]
push edx
push eax
call fcn.0045d40d
mov ecx, dword [ebp - 0xfa8]
push ecx
call fcn.0045b48f
add esp, 0x14
mov dword [ebp - 0xfa8], ebx
call fcn.0042f5a0
mov edx, dword [eax + 0x18]
mov esi, dword [0x50eac4]
call fcn.004369e0
cmp dword [ebp - 0xfb4], eax
je 0x42dac6
mov edx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
lea edi, [ebp - 0x1000]
push edx
lea esi, [ebp - 0xfe8]
call fcn.0042eea0
jmp 0x42d689
lea edx, [ebp - 0x870]
push edx
call fcn.0045e0c6
mov eax, dword [ebp - 0xfa0]
add esp, 4
push eax
push 1
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
mov ecx, dword [eax + 0x18]
mov edx, dword [0x50eac4]
push ecx
push edx
call fcn.0045b1b0
add esp, 0x10
jmp 0x42db0f
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
mov dword [eax], 0xffffffff
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
push eax
push 0x50ff10
call fcn.0042edf0
mov esi, dword [ebp - 0xfdc]
cmp esi, dword [ebp - 0xfd8]
jbe 0x42db38
call fcn.0045a4cc
mov eax, dword [ebp - 0xf98]
cmp eax, ebx
je 0x42db4a
cmp eax, dword [ebp - 0xfe8]
je 0x42db4f
call fcn.0045a4cc
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp dword [ebp - 0xf98], ebx
jne 0x42dc02
call fcn.0045a4cc
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x42db83
call fcn.0045a4cc
inc esi
mov dword [ebp - 0xfac], esi
fild dword [ebp - 0xfac]
mov edx, dword [0x50e884]
push ebx
add edi, 0x1c
fidiv dword [ebp - 0xfa4]
mov dword [ebp - 0xf94], edi
fstp dword [ebp - 0xfac]
fld dword [ebp - 0xfac]
fimul dword [0x50e890]
fnstcw word [ebp - 0xfaa]
movzx eax, word [ebp - 0xfaa]
or eax, 0xc00
mov dword [ebp - 0xfbc], eax
fldcw word [ebp - 0xfbc]
fistp qword [ebp - 0xfc0]
mov ecx, dword [ebp - 0xfc0]
push ecx
push 0x4c9
push edx
fldcw word [ebp - 0xfaa]
call dword [sym.imp.USER32.dll_PostMessageW]
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42d6a0
mov eax, dword [ebp - 0xf98]
mov eax, dword [eax]
jmp 0x42db79
lea esi, [ebp - 0x1000]
mov edi, 0x50ff10
call fcn.0042ed50
lea esi, [ebp - 0x1008]
mov dword [ebp - 0xfbc], eax
call fcn.0042ed30
mov ecx, dword [ebp - 0xfbc]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
call fcn.00431970
mov eax, dword [ebp - 0xfa0]
add esp, 0x10
cmp eax, ebx
je 0x42dc78
push eax
call fcn.0045b48f
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 4
push 7
lea ecx, [ebp - 0x460]
push ecx
mov dword [ebp - 0xfa0], ebx
call edi
jmp 0x42dc7e
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0xfb0], ebx
jne 0x42defa
push ecx
lea edx, [ebp - 0xa78]
mov ecx, esp
mov dword [ebp - 0xfbc], esp
push edx
call fcn.00433040
call fcn.004054c0
add esp, 4
push 7
lea eax, [ebp - 0x258]
push eax
call edi
mov ecx, dword [ebp - 0xfec]
push ecx
lea edx, [ebp - 0xd88]
push edx
push 0x4f7664
lea edx, [ebp - 0x668]
call fcn.00407ab0
add esp, 0xc
push 0x80
lea eax, [ebp - 0x668]
push eax
call edi
lea ecx, [ebp - 0x668]
push ecx
call fcn.0045e0c6
add esp, 4
push 0xb
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x80
lea ecx, [ebp - 0x668]
push ecx
call edi
push 0x4f52d8
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0xf9c]
push eax
call fcn.0045affb
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0045b1b0
mov ecx, dword [0x50ff20]
sub ecx, dword [0x50ff1c]
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0xf9c]
sar edx, 4
mov eax, edx
push ecx
shr eax, 0x1f
add eax, edx
push 1
lea edx, [ebp - 0xfa4]
push 4
push edx
mov dword [ebp - 0xfa4], eax
call fcn.0045b1b0
mov esi, dword [ebp - 0xfa4]
add esp, 0x20
cmp esi, ebx
jle 0x42ddea
mov ecx, dword [0x50ecec]
call fcn.004368d0
mov ecx, dword [0x50e88c]
push eax
call fcn.004368d0
push eax
lea eax, [esi*8]
sub eax, esi
add eax, eax
add eax, eax
push eax
xor esi, esi
call fcn.0042edb0
lea ecx, [ebp - 0xfd0]
mov edx, eax
call fcn.00436220
mov ecx, dword [ebp - 0xf9c]
mov edx, dword [ebp - 0xfa4]
add esp, 0xc
push ecx
push edx
push 0x1c
call fcn.0042edb0
push eax
call fcn.0045b1b0
add esp, 0x10
mov eax, dword [ebp - 0xf9c]
push ebx
push ebx
push eax
call fcn.0045cedd
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0045b1b0
mov eax, dword [ebp - 0xfa4]
xor eax, 0x9b540b19
mov ecx, eax
shl eax, 0x13
shr ecx, 0xd
or eax, ecx
push ebx
mov dword [ebp - 0xfa4], eax
mov eax, dword [ebp - 0xf9c]
push 8
push eax
call fcn.0045cedd
mov ecx, dword [ebp - 0xf9c]
add esp, 0x1c
push ecx
push 1
lea edx, [ebp - 0xfa4]
push 4
push edx
call fcn.0045b1b0
mov eax, dword [ebp - 0xf9c]
push eax
call fcn.0045b48f
add esp, 0x14
push 0x80
lea ecx, [ebp - 0x258]
push ecx
mov dword [ebp - 0xf9c], ebx
call edi
lea edx, [ebp - 0x258]
push edx
call fcn.0045e0c6
add esp, 4
push 0xb
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x668]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 7
lea edx, [ebp - 0x258]
push edx
call edi
lea eax, [ebp - 0x1020]
push eax
call fcn.00436ff0
push eax
lea edx, [ebp - 0xfe8]
mov byte [ebp - 4], 2
call fcn.0042ef00
lea esi, [ebp - 0x1020]
mov byte [ebp - 4], 1
call fcn.004088d0
lea ecx, [ebp - 0x1020]
push ecx
call fcn.00436ff0
push eax
mov edx, 0x50ff10
mov byte [ebp - 4], 3
call fcn.0042ef00
lea esi, [ebp - 0x1020]
jmp 0x42e66b
push str.Optimizing_resource_files._Please_wait.
mov edx, 0x50e8a0
call fcn.00407ab0
mov edx, dword [0x50e884]
add esp, 4
push ebx
push ebx
push 0x4c8
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x4f78c4
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0xfa0]
push ecx
call fcn.0045affb
add esp, 0xc
cmp dword [ebp - 0xfa0], ebx
jne 0x42dfa5
lea edx, [ebp - 0x460]
push edx
push ebx
lea eax, [ebp - 0x258]
push eax
push ebx
mov byte [0x50eac8], bl
call fcn.0042ce50
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000003
mov edx, 0x50e8a0
call fcn.00407ab0
mov ecx, dword [0x50e884]
add esp, 0x18
push ebx
push ebx
push 0x4c8
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
mov esi, eax
mov edi, str.Cant_Optimize_Resource_File.
call fcn.004273d0
add esp, 4
jmp 0x42e676
push str..___
push 0x50e6c0
push 0x4f765c
push str._s_s_s
lea edx, [ebp - 0xf90]
call fcn.00407ab0
add esp, 0x10
push 0x80
lea edx, [ebp - 0xf90]
push edx
call edi
lea eax, [ebp - 0xf90]
push eax
call fcn.0045e0c6
add esp, 4
push 0x4f52d8
lea ecx, [ebp - 0xf90]
push ecx
lea edx, [ebp - 0xfc8]
push edx
call fcn.0045affb
add esp, 0xc
cmp dword [ebp - 0xfc8], ebx
jne 0x42e053
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000004
mov edx, 0x50e8a0
mov byte [0x50eac8], bl
call fcn.00407ab0
mov eax, dword [0x50e884]
add esp, 8
push ebx
push ebx
push 0x4c8
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
mov esi, eax
mov edi, str.Cant_Optimize_Resource_File.
call fcn.004273d0
add esp, 4
jmp 0x42e676
mov ecx, dword [0x50e884]
push ebx
push ebx
push 0x4c9
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [0x50ff20]
sub ecx, dword [0x50ff1c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea esi, [ebp - 0x1000]
mov edi, 0x50ff10
mov dword [ebp - 0xfb0], eax
call fcn.0042ed30
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea esi, [ebp - 0xff4]
mov dword [ebp - 0xf98], edx
mov dword [ebp - 0xf94], eax
call fcn.0042ed50
mov esi, eax
lea edi, [ebp - 0xf98]
call fcn.0042f4f0
test al, al
je 0x42e353
lea ecx, [ecx]
call fcn.00427770
test eax, eax
jne 0x42e676
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
cmp dword [eax], 0xffffffff
jne 0x42e241
call fcn.0042f5a0
add eax, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42e100
push ebx
sub eax, edx
push ebx
inc eax
push eax
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add eax, 4
push eax
push ebx
push ebx
call edi
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0xffffffffffffffff
call fcn.0042f5a0
add eax, 4
push eax
push ebx
push ebx
call edi
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0xa78]
push eax
push str._s_s
lea edx, [ebp - 0x870]
call fcn.00407ab0
add esp, 0xc
push 0x4f78c4
lea ecx, [ebp - 0x870]
push ecx
lea edx, [ebp - 0xfa8]
push edx
call fcn.0045affb
mov eax, dword [ebp - 0xfa8]
add esp, 0xc
cmp eax, ebx
jne 0x42e1b7
lea edi, [ebp - 0x1000]
mov eax, dword [ebp - 0xf94]
mov ecx, dword [ebp - 0xf98]
push eax
push ecx
mov esi, 0x50ff10
call fcn.0042eea0
mov edx, dword [eax]
mov eax, dword [eax + 4]
dec dword [ebp - 0xfb0]
mov dword [ebp - 0xf98], edx
mov dword [ebp - 0xf94], eax
jmp 0x42e32e
push eax
push 1
lea ecx, [ebp - 0xfb4]
push 4
push ecx
mov dword [ebp - 0xfb4], ebx
call fcn.0045d40d
mov edx, dword [ebp - 0xfa8]
add esp, 0x10
push edx
push 1
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
mov eax, dword [eax + 0x18]
mov ecx, dword [0x50eac4]
push eax
push ecx
call fcn.0045d40d
mov edx, dword [ebp - 0xfa8]
push edx
call fcn.0045b48f
add esp, 0x14
mov dword [ebp - 0xfa8], ebx
call fcn.0042f5a0
mov edx, dword [eax + 0x18]
mov esi, dword [0x50eac4]
call fcn.004369e0
cmp dword [ebp - 0xfb4], eax
je 0x42e230
lea edi, [ebp - 0x1008]
jmp 0x42e183
lea ecx, [ebp - 0x870]
push ecx
call fcn.0045e0c6
add esp, 4
jmp 0x42e27f
call fcn.0042f5a0
mov edx, dword [eax]
mov eax, dword [ebp - 0xfa0]
push ebx
push edx
push eax
call fcn.0045cedd
mov ecx, dword [ebp - 0xfa0]
add esp, 0xc
push ecx
push 1
lea esi, [ebp - 0xf98]
call fcn.0042f5a0
mov edx, dword [eax + 0x18]
mov eax, dword [0x50eac4]
push edx
push eax
call fcn.0045d40d
add esp, 0x10
mov ecx, dword [ebp - 0xfc8]
push ecx
call fcn.0045d0ff
add esp, 4
lea esi, [ebp - 0xf98]
mov edi, eax
call fcn.0042f5a0
mov dword [eax], edi
mov edx, dword [ebp - 0xfc8]
push edx
push 1
call fcn.0042f5a0
mov eax, dword [eax + 0x18]
mov ecx, dword [0x50eac4]
push eax
push ecx
call fcn.0045b1b0
add esp, 0x10
lea esi, [ebp - 0x1028]
mov edi, 0x50ff10
call fcn.0042ed30
mov esi, eax
lea edi, [ebp - 0xf98]
call fcn.0042f600
lea esi, [ebp - 0xf98]
mov edi, eax
call fcn.0042f5d0
inc edi
mov dword [ebp - 0xfbc], edi
fild dword [ebp - 0xfbc]
fidiv dword [ebp - 0xfb0]
fstp dword [ebp - 0xfbc]
fild dword [0x50e890]
fmul dword [ebp - 0xfbc]
call fcn.0045f9e0
mov edx, dword [0x50e884]
push ebx
push eax
push 0x4c9
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [ebp - 0xff4]
mov edi, 0x50ff10
call fcn.0042ed50
mov esi, eax
lea edi, [ebp - 0xf98]
call fcn.0042f4f0
test al, al
jne 0x42e0d0
mov eax, dword [ebp - 0xfc8]
push eax
call fcn.0045b48f
mov ecx, dword [ebp - 0xfa0]
add esp, 4
push ecx
call fcn.0045b48f
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 4
push 6
lea edx, [ebp - 0x460]
push edx
call edi
lea eax, [ebp - 0x460]
push eax
call fcn.0045e0c6
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 4
push 0xb
lea ecx, [ebp - 0x460]
push ecx
lea edx, [ebp - 0xf90]
push edx
call esi
cmp eax, ebx
jne 0x42e3f9
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000005
mov edx, 0x50e8a0
mov byte [0x50eac8], bl
call fcn.00407ab0
mov eax, dword [0x50e884]
add esp, 8
push ebx
push ebx
push 0x4c8
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
mov esi, eax
mov edi, str.Cant_Optimize_Resource_File.
call fcn.004273d0
add esp, 4
jmp 0x42e676
push 7
lea ecx, [ebp - 0x460]
push ecx
call edi
push ecx
lea edx, [ebp - 0xa78]
mov ecx, esp
mov dword [ebp - 0xfbc], esp
push edx
call fcn.00433040
call fcn.004054c0
add esp, 4
push 7
lea eax, [ebp - 0x258]
push eax
call edi
mov ecx, dword [ebp - 0xfec]
push ecx
lea edx, [ebp - 0xd88]
push edx
push 0x4f7664
lea edx, [ebp - 0x668]
call fcn.00407ab0
add esp, 0xc
push 0x80
lea eax, [ebp - 0x668]
push eax
call edi
lea ecx, [ebp - 0x668]
push ecx
call fcn.0045e0c6
add esp, 4
push 0xb
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0x258]
push eax
call esi
push 0x80
lea ecx, [ebp - 0x668]
push ecx
call edi
push 0x4f52d8
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0xf9c]
push eax
call fcn.0045affb
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0045b1b0
mov ecx, dword [0x50ff20]
sub ecx, dword [0x50ff1c]
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0xf9c]
sar edx, 4
mov eax, edx
push ecx
shr eax, 0x1f
add eax, edx
push 1
lea edx, [ebp - 0xfc4]
push 4
push edx
mov dword [ebp - 0xfc4], eax
call fcn.0045b1b0
mov esi, dword [ebp - 0xfc4]
add esp, 0x20
cmp esi, ebx
jle 0x42e560
mov ecx, dword [0x50ecec]
call fcn.004368d0
mov ecx, dword [0x50e88c]
push eax
call fcn.004368d0
push eax
lea eax, [esi*8]
sub eax, esi
add eax, eax
add eax, eax
push eax
xor esi, esi
call fcn.0042edb0
lea ecx, [ebp - 0xfd0]
mov edx, eax
call fcn.00436220
mov ecx, dword [ebp - 0xf9c]
mov edx, dword [ebp - 0xfc4]
add esp, 0xc
push ecx
push edx
push 0x1c
call fcn.0042edb0
push eax
call fcn.0045b1b0
add esp, 0x10
mov eax, dword [ebp - 0xf9c]
push ebx
push ebx
push eax
call fcn.0045cedd
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0045b1b0
mov eax, dword [ebp - 0xfc4]
xor eax, 0x9b540b19
mov ecx, eax
shl eax, 0x13
shr ecx, 0xd
or eax, ecx
push ebx
mov dword [ebp - 0xfc4], eax
mov eax, dword [ebp - 0xf9c]
push 8
push eax
call fcn.0045cedd
mov ecx, dword [ebp - 0xf9c]
add esp, 0x1c
push ecx
push 1
lea edx, [ebp - 0xfc4]
push 4
push edx
call fcn.0045b1b0
mov eax, dword [ebp - 0xf9c]
push eax
call fcn.0045b48f
add esp, 0x14
push 0x80
lea ecx, [ebp - 0x258]
push ecx
mov dword [ebp - 0xf9c], ebx
call edi
lea edx, [ebp - 0x258]
push edx
call fcn.0045e0c6
add esp, 4
push 0xb
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x668]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 7
lea edx, [ebp - 0x258]
push edx
call edi
lea eax, [ebp - 0x1020]
push eax
call fcn.00436ff0
push eax
lea edx, [ebp - 0xfe8]
mov byte [ebp - 4], 4
call fcn.0042ef00
lea esi, [ebp - 0x1020]
mov byte [ebp - 4], 1
call fcn.004088d0
lea ecx, [ebp - 0x1048]
push ecx
call fcn.00436ff0
push eax
mov edx, 0x50ff10
mov byte [ebp - 4], 5
call fcn.0042ef00
lea esi, [ebp - 0x1048]
call fcn.004088d0
mov byte [0x50eac8], bl
lea esi, [ebp - 0xfe8]
call fcn.004088d0
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.0045a0a2
mov esp, ebp
pop ebp
ret