Function at 0x43ed50
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 0x4e5b32
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.00474d50
mov eax, dword [0x520628]
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 [0x52bfc0]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x440491
mov ecx, dword [0x52ad90]
cmp ecx, ebx
je 0x440491
call fcn.0044a600
lea esi, [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, dword [esi]
cmp eax, 0x1b7d6a4
jne 0x440491
mov byte [0x52ab6c], 1
cmp dword [0x52ab68], ebx
jne 0x43ee34
push 0xa00000
call fcn.004509ec
add esp, 4
mov dword [0x52ab68], eax
cmp eax, ebx
jne 0x43ee34
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000006
mov edx, 0x52a948
mov byte [0x52ab6c], bl
call fcn.0040a600
mov ecx, dword [0x52a928]
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, 0x512bd0
call fcn.00438c20
add esp, 4
jmp 0x440491
lea edx, [ebp - 0x1020]
push edx
call fcn.0040a030
push eax
mov edx, 0x52bfc8
mov dword [ebp - 4], ebx
call fcn.00441090
lea esi, [ebp - 0x1020]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a160
push ebx
call fcn.00440f00
push str.Packing_resource_files._Please_wait.
mov edx, 0x52a948
mov dword [ebp - 0xfb4], ebx
call fcn.0040a600
mov eax, dword [0x52a928]
add esp, 4
push ebx
push ebx
push 0x4c8
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [0x52a92c]
call fcn.0044a600
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.0040a030
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.00473d40
add esp, 0xc
push 0x206
lea edx, [ebp - 0x666]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x668], cx
call fcn.00473d40
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x86e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x870], ax
call fcn.00473d40
add esp, 0xc
push 0x206
lea eax, [ebp - 0x256]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x258], dx
call fcn.00473d40
add esp, 0xc
push 0x206
lea edx, [ebp - 0x45e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x460], cx
call fcn.00473d40
add esp, 0xc
xor eax, eax
push 0x206
lea ecx, [ebp - 0xa76]
push ebx
push ecx
mov word [ebp - 0xa78], ax
call fcn.00473d40
add esp, 0xc
push 0x103
lea edx, [ebp - 0xb7f]
push ebx
push edx
mov byte [ebp - 0xb80], bl
call fcn.00473d40
add esp, 0xc
lea eax, [ebp - 0xd88]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x52a760
push 0x511a0c
push 0x511a14
lea edx, [ebp - 0xa78]
call fcn.0040a600
add esp, 0xc
lea eax, [esi + 0xc22]
push eax
push 0x511a0c
push 0x511a14
lea edx, [ebp - 0x258]
mov dword [ebp - 0xfec], eax
call fcn.0040a600
add esp, 0xc
push str..dat
push 0x52a760
push 0x511a0c
push str._s_s_s
lea edx, [ebp - 0x460]
call fcn.0040a600
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 0x5120cc
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0xf9c]
push ecx
call fcn.0046f0db
mov eax, dword [ebp - 0xf9c]
add esp, 0xc
cmp eax, ebx
je 0x43f21a
push eax
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.004714ed
add esp, 0x10
cmp eax, ebx
jg 0x43f08b
mov dword [ebp - 0xfb8], ebx
jmp 0x43f0cc
mov eax, dword [ebp - 0xf9c]
push eax
push 1
lea ecx, [ebp - 0xfb8]
push 4
push ecx
call fcn.004714ed
add esp, 0x10
cmp eax, ebx
jg 0x43f0b1
mov dword [ebp - 0xfb8], ebx
jmp 0x43f0cc
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.00473d40
add esp, 0xc
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebp - 0x258]
push ecx
call fcn.00471d64
mov eax, dword [ebp - 0xfb8]
add esp, 8
cmp eax, ebx
jbe 0x43f184
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 0x43f184
mov ecx, dword [ebp - 0xf9c]
lea edx, [ebp - 0x460]
push edx
push ebx
lea eax, [ebp - 0x258]
push eax
push ecx
mov byte [0x52ab6c], bl
call fcn.0043ec60
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000008
mov edx, 0x52a948
call fcn.0040a600
mov edx, dword [0x52a928]
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.00438c20
add esp, 4
jmp 0x440486
push eax
call fcn.00440f00
mov ecx, 0x52bfc8
call fcn.00440e90
test eax, eax
jbe 0x43f205
mov eax, dword [ebp - 0xf9c]
mov ecx, dword [ebp - 0xfb8]
push eax
push ecx
push 0x1c
xor esi, esi
call fcn.00440f40
push eax
call fcn.004714ed
mov ecx, dword [0x52ad90]
add esp, 0x10
call fcn.0044a600
mov ecx, dword [0x52a930]
push eax
lea edx, [ebp - 0xfd0]
push edx
call fcn.0044a600
mov dword [ebp - 0xfb0], eax
mov eax, dword [ebp - 0xfb8]
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
push ecx
call fcn.00440f40
mov ecx, dword [ebp - 0xfb0]
mov edx, eax
call fcn.0044a2a0
add esp, 0xc
mov edx, dword [ebp - 0xf9c]
push edx
call fcn.0046f56f
add esp, 4
mov dword [ebp - 0xf9c], ebx
lea eax, [ebp - 0xb80]
push eax
lea esi, [ebp - 0xa78]
call fcn.0044af70
lea ecx, [ebp - 0xfe8]
add esp, 4
push ecx
lea ecx, [ebp - 0xfb4]
lea edx, [ebp - 0xb80]
call fcn.0043e9f0
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 - 0xfb0], eax
jle 0x440480
mov ecx, dword [0x52bfd8]
sub ecx, dword [0x52bfd4]
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 - 0xfb4], ebx
jne 0x43f472
push 6
lea edx, [ebp - 0x460]
push edx
call edi
push 0x512cac
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0xfa0]
push ecx
call fcn.0046f0db
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
cmp eax, ebx
je 0x43f383
push 2
push ebx
push eax
call fcn.00470fbd
mov edx, dword [ebp - 0xfa0]
add esp, 0xc
push edx
call fcn.004711df
add esp, 4
push ebx
mov edi, eax
mov eax, dword [ebp - 0xfa0]
push ebx
push eax
call fcn.00470fbd
add esp, 0xc
cmp esi, ebx
jle 0x43f472
cmp edi, 1
jg 0x43f472
mov edx, dword [ebp - 0xfa0]
lea ecx, [ebp - 0x460]
push ecx
push edx
lea eax, [ebp - 0x258]
push eax
push ebx
mov byte [0x52ab6c], bl
call fcn.0043ec60
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000001
mov edx, 0x52a948
call fcn.0040a600
mov ecx, dword [0x52a928]
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 1
mov esi, eax
mov edi, str.Cant_Pack_Resource_File.
call fcn.00438c20
add esp, 4
jmp 0x440486
push 0x512cdc
lea edx, [ebp - 0x460]
push edx
lea eax, [ebp - 0xfa0]
push eax
call fcn.0046f0db
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
cmp eax, ebx
je 0x43f411
cmp esi, ebx
jle 0x43f472
lea ecx, [ebp - 0x460]
push ecx
push eax
lea edx, [ebp - 0x258]
push edx
push ebx
mov byte [0x52ab6c], bl
call fcn.0043ec60
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000002
mov edx, 0x52a948
call fcn.0040a600
mov eax, dword [0x52a928]
add esp, 0x18
push ebx
push ebx
push 0x4c8
push eax
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.00438c20
add esp, 4
jmp 0x440486
lea ecx, [ebp - 0x460]
push ecx
push ebx
lea edx, [ebp - 0x258]
push edx
push ebx
mov byte [0x52ab6c], bl
call fcn.0043ec60
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000007
mov edx, 0x52a948
call fcn.0040a600
mov eax, dword [0x52a928]
add esp, 0x18
push ebx
push ebx
push 0x4c8
push eax
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.00438c20
add esp, 4
jmp 0x440486
mov ecx, dword [0x52a928]
push ebx
push ebx
push 0x4c9
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0xfb0]
lea esi, [ebp - 0xfc0]
lea edi, [ebp - 0xfe8]
mov dword [ebp - 0xfa4], edx
call fcn.00440ec0
mov ecx, dword [eax]
mov dword [ebp - 0xf98], ecx
mov edi, dword [eax + 4]
mov dword [ebp - 0xf94], edi
mov eax, dword [ebp - 0xfd8]
mov dword [ebp - 0xfac], eax
cmp dword [ebp - 0xfdc], eax
jbe 0x43f4cd
call fcn.0046e5b0
mov esi, dword [ebp - 0xf98]
cmp esi, ebx
je 0x43f4df
cmp esi, dword [ebp - 0xfe8]
je 0x43f4e4
call fcn.0046e5b0
cmp edi, dword [ebp - 0xfac]
je 0x43fa1f
mov edx, dword [0x52bfc0]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x440486
cmp esi, ebx
jne 0x43f623
call fcn.0046e5b0
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x43f51f
call fcn.0046e5b0
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.0043e910
add esp, 0xc
mov dword [ebp - 0xfac], eax
mov dword [ebp - 0xfb0], ebx
cmp eax, ebx
je 0x43f749
lea esi, [ebp - 0xf98]
call fcn.004418d0
cmp dword [ebp - 0xfb4], ebx
jne 0x43f71d
mov ecx, dword [ebp - 0xfac]
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.004418d0
add eax, 4
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43f580
sub eax, esi
push ebx
push ebx
inc eax
push eax
lea esi, [ebp - 0xf98]
call fcn.004418d0
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.004418d0
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.0040a600
add esp, 0xc
push 0x5120cc
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0xfa8]
push ecx
call fcn.0046f0db
mov eax, dword [ebp - 0xfa8]
add esp, 0xc
cmp eax, ebx
jne 0x43f62a
mov edx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
lea edi, [ebp - 0x1030]
push edx
lea esi, [ebp - 0xfe8]
call fcn.00441030
jmp 0x43f4a3
mov eax, dword [esi]
jmp 0x43f515
push eax
push 1
lea edx, [ebp - 0xfb0]
push 4
push edx
call fcn.004714ed
mov eax, dword [ebp - 0xfa8]
add esp, 0x10
push eax
push 1
lea esi, [ebp - 0xf98]
call fcn.004418d0
mov ecx, dword [eax + 0x18]
mov edx, dword [0x52ab68]
push ecx
push edx
call fcn.004714ed
mov eax, dword [ebp - 0xfa8]
push eax
call fcn.0046f56f
add esp, 0x14
mov dword [ebp - 0xfa8], ebx
call fcn.004418d0
mov edx, dword [eax + 0x18]
mov esi, dword [0x52ab68]
call fcn.0044a710
cmp dword [ebp - 0xfb0], eax
je 0x43f6be
mov ecx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
push ecx
lea edi, [ebp - 0x1028]
lea esi, [ebp - 0xfe8]
call fcn.00441030
mov edx, dword [eax]
mov dword [ebp - 0xf98], edx
jmp 0x43f4ab
lea eax, [ebp - 0x870]
push eax
call fcn.004721d6
add esp, 4
lea esi, [ebp - 0xf98]
call fcn.004418d0
mov ecx, dword [eax]
mov edx, dword [ebp - 0xfa0]
push ebx
push ecx
push edx
call fcn.00470fbd
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
push eax
push 1
call fcn.004418d0
mov ecx, dword [eax + 0x18]
mov edx, dword [0x52ab68]
push ecx
push edx
call fcn.0046f290
mov eax, dword [ebp - 0xfa0]
push 2
push ebx
push eax
call fcn.00470fbd
add esp, 0x1c
jmp 0x43f723
mov dword [eax], 0xffffffff
lea esi, [ebp - 0xf98]
call fcn.004418d0
mov ecx, dword [ebp - 0xfac]
push ecx
mov ecx, 0x1c
mov edx, eax
call fcn.004471d0
add esp, 4
jmp 0x43f935
cmp dword [ebp - 0xfb4], ebx
jne 0x43f90e
mov edx, dword [ebp - 0xfa0]
push 2
push ebx
push edx
call fcn.00470fbd
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
push eax
call fcn.004711df
add esp, 4
lea esi, [ebp - 0xf98]
mov dword [ebp - 0xfac], eax
call fcn.004418d0
mov ecx, dword [ebp - 0xfac]
mov dword [eax], ecx
call fcn.004418d0
add eax, 4
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43f7a0
sub eax, esi
push ebx
push ebx
inc eax
push eax
lea esi, [ebp - 0xf98]
call fcn.004418d0
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.004418d0
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.0040a600
add esp, 0xc
push 0x5120cc
lea edx, [ebp - 0x870]
push edx
lea eax, [ebp - 0xfa8]
push eax
call fcn.0046f0db
mov eax, dword [ebp - 0xfa8]
add esp, 0xc
cmp eax, ebx
jne 0x43f84b
mov ecx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
push ecx
lea edi, [ebp - 0x1008]
lea esi, [ebp - 0xfe8]
call fcn.00441030
mov edx, dword [eax]
mov dword [ebp - 0xf98], edx
jmp 0x43f4ab
push eax
push 1
lea eax, [ebp - 0xfb0]
push 4
push eax
call fcn.004714ed
mov ecx, dword [ebp - 0xfa8]
add esp, 0x10
push ecx
push 1
lea esi, [ebp - 0xf98]
call fcn.004418d0
mov edx, dword [eax + 0x18]
mov eax, dword [0x52ab68]
push edx
push eax
call fcn.004714ed
mov ecx, dword [ebp - 0xfa8]
push ecx
call fcn.0046f56f
add esp, 0x14
mov dword [ebp - 0xfa8], ebx
call fcn.004418d0
mov edx, dword [eax + 0x18]
mov esi, dword [0x52ab68]
call fcn.0044a710
cmp dword [ebp - 0xfb0], eax
je 0x43f8d6
mov edx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
lea edi, [ebp - 0x1000]
push edx
lea esi, [ebp - 0xfe8]
call fcn.00441030
jmp 0x43f4a3
lea edx, [ebp - 0x870]
push edx
call fcn.004721d6
mov eax, dword [ebp - 0xfa0]
add esp, 4
push eax
push 1
lea esi, [ebp - 0xf98]
call fcn.004418d0
mov ecx, dword [eax + 0x18]
mov edx, dword [0x52ab68]
push ecx
push edx
call fcn.0046f290
add esp, 0x10
jmp 0x43f91f
lea esi, [ebp - 0xf98]
call fcn.004418d0
mov dword [eax], 0xffffffff
lea esi, [ebp - 0xf98]
call fcn.004418d0
push eax
push 0x52bfc8
call fcn.00440f80
mov esi, dword [ebp - 0xfdc]
cmp esi, dword [ebp - 0xfd8]
jbe 0x43f948
call fcn.0046e5b0
mov eax, dword [ebp - 0xf98]
cmp eax, ebx
je 0x43f95a
cmp eax, dword [ebp - 0xfe8]
je 0x43f95f
call fcn.0046e5b0
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 0x43fa12
call fcn.0046e5b0
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x43f993
call fcn.0046e5b0
inc esi
mov dword [ebp - 0xfac], esi
fild dword [ebp - 0xfac]
mov edx, dword [0x52a928]
push ebx
add edi, 0x1c
fidiv dword [ebp - 0xfa4]
mov dword [ebp - 0xf94], edi
fstp dword [ebp - 0xfac]
fld dword [ebp - 0xfac]
fimul dword [0x52a934]
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 0x43f4b4
mov eax, dword [ebp - 0xf98]
mov eax, dword [eax]
jmp 0x43f989
lea esi, [ebp - 0x1000]
mov edi, 0x52bfc8
call fcn.00440ee0
lea esi, [ebp - 0x1008]
mov dword [ebp - 0xfbc], eax
call fcn.00440ec0
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.00444970
mov eax, dword [ebp - 0xfa0]
add esp, 0x10
cmp eax, ebx
je 0x43fa88
push eax
call fcn.0046f56f
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 0x43fa8e
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0xfb4], ebx
jne 0x43fd0a
push ecx
lea edx, [ebp - 0xa78]
mov ecx, esp
mov dword [ebp - 0xfbc], esp
push edx
call fcn.00446d10
call fcn.004060f0
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 0x511a14
lea edx, [ebp - 0x668]
call fcn.0040a600
add esp, 0xc
push 0x80
lea eax, [ebp - 0x668]
push eax
call edi
lea ecx, [ebp - 0x668]
push ecx
call fcn.004721d6
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 0x50f670
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0xf9c]
push eax
call fcn.0046f0db
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0046f290
mov ecx, dword [0x52bfd8]
sub ecx, dword [0x52bfd4]
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.0046f290
mov esi, dword [ebp - 0xfa4]
add esp, 0x20
cmp esi, ebx
jle 0x43fbfa
mov ecx, dword [0x52ad90]
call fcn.0044a600
mov ecx, dword [0x52a930]
push eax
call fcn.0044a600
push eax
lea eax, [esi*8]
sub eax, esi
add eax, eax
add eax, eax
push eax
xor esi, esi
call fcn.00440f40
lea ecx, [ebp - 0xfd0]
mov edx, eax
call fcn.00449f30
mov ecx, dword [ebp - 0xf9c]
mov edx, dword [ebp - 0xfa4]
add esp, 0xc
push ecx
push edx
push 0x1c
call fcn.00440f40
push eax
call fcn.0046f290
add esp, 0x10
mov eax, dword [ebp - 0xf9c]
push ebx
push ebx
push eax
call fcn.00470fbd
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0046f290
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.00470fbd
mov ecx, dword [ebp - 0xf9c]
add esp, 0x1c
push ecx
push 1
lea edx, [ebp - 0xfa4]
push 4
push edx
call fcn.0046f290
mov eax, dword [ebp - 0xf9c]
push eax
call fcn.0046f56f
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.004721d6
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.0040a030
push eax
lea edx, [ebp - 0xfe8]
mov byte [ebp - 4], 2
call fcn.00441090
lea esi, [ebp - 0x1020]
mov byte [ebp - 4], 1
call fcn.0040a160
lea ecx, [ebp - 0x1020]
push ecx
call fcn.0040a030
push eax
mov edx, 0x52bfc8
mov byte [ebp - 4], 3
call fcn.00441090
lea esi, [ebp - 0x1020]
jmp 0x44047b
push str.Optimizing_resource_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 dword [sym.imp.USER32.dll_PostMessageW]
push 0x5120cc
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0xfa0]
push ecx
call fcn.0046f0db
add esp, 0xc
cmp dword [ebp - 0xfa0], ebx
jne 0x43fdb5
lea edx, [ebp - 0x460]
push edx
push ebx
lea eax, [ebp - 0x258]
push eax
push ebx
mov byte [0x52ab6c], bl
call fcn.0043ec60
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000003
mov edx, 0x52a948
call fcn.0040a600
mov ecx, dword [0x52a928]
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.00438c20
add esp, 4
jmp 0x440486
push str..___
push 0x52a760
push 0x511a0c
push str._s_s_s
lea edx, [ebp - 0xf90]
call fcn.0040a600
add esp, 0x10
push 0x80
lea edx, [ebp - 0xf90]
push edx
call edi
lea eax, [ebp - 0xf90]
push eax
call fcn.004721d6
add esp, 4
push 0x50f670
lea ecx, [ebp - 0xf90]
push ecx
lea edx, [ebp - 0xfc8]
push edx
call fcn.0046f0db
add esp, 0xc
cmp dword [ebp - 0xfc8], ebx
jne 0x43fe63
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000004
mov edx, 0x52a948
mov byte [0x52ab6c], bl
call fcn.0040a600
mov eax, dword [0x52a928]
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.00438c20
add esp, 4
jmp 0x440486
mov ecx, dword [0x52a928]
push ebx
push ebx
push 0x4c9
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [0x52bfd8]
sub ecx, dword [0x52bfd4]
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, 0x52bfc8
mov dword [ebp - 0xfb4], eax
call fcn.00440ec0
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.00440ee0
mov esi, eax
lea edi, [ebp - 0xf98]
call fcn.00441960
test al, al
je 0x440163
lea ecx, [ecx]
call fcn.00439560
test eax, eax
jne 0x440486
lea esi, [ebp - 0xf98]
call fcn.004418d0
cmp dword [eax], 0xffffffff
jne 0x440051
call fcn.004418d0
add eax, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43ff10
push ebx
sub eax, edx
push ebx
inc eax
push eax
lea esi, [ebp - 0xf98]
call fcn.004418d0
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.004418d0
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.0040a600
add esp, 0xc
push 0x5120cc
lea ecx, [ebp - 0x870]
push ecx
lea edx, [ebp - 0xfa8]
push edx
call fcn.0046f0db
mov eax, dword [ebp - 0xfa8]
add esp, 0xc
cmp eax, ebx
jne 0x43ffc7
lea edi, [ebp - 0x1000]
mov eax, dword [ebp - 0xf94]
mov ecx, dword [ebp - 0xf98]
push eax
push ecx
mov esi, 0x52bfc8
call fcn.00441030
mov edx, dword [eax]
mov eax, dword [eax + 4]
dec dword [ebp - 0xfb4]
mov dword [ebp - 0xf98], edx
mov dword [ebp - 0xf94], eax
jmp 0x44013e
push eax
push 1
lea ecx, [ebp - 0xfb0]
push 4
push ecx
mov dword [ebp - 0xfb0], ebx
call fcn.004714ed
mov edx, dword [ebp - 0xfa8]
add esp, 0x10
push edx
push 1
lea esi, [ebp - 0xf98]
call fcn.004418d0
mov eax, dword [eax + 0x18]
mov ecx, dword [0x52ab68]
push eax
push ecx
call fcn.004714ed
mov edx, dword [ebp - 0xfa8]
push edx
call fcn.0046f56f
add esp, 0x14
mov dword [ebp - 0xfa8], ebx
call fcn.004418d0
mov edx, dword [eax + 0x18]
mov esi, dword [0x52ab68]
call fcn.0044a710
cmp dword [ebp - 0xfb0], eax
je 0x440040
lea edi, [ebp - 0x1008]
jmp 0x43ff93
lea ecx, [ebp - 0x870]
push ecx
call fcn.004721d6
add esp, 4
jmp 0x44008f
call fcn.004418d0
mov edx, dword [eax]
mov eax, dword [ebp - 0xfa0]
push ebx
push edx
push eax
call fcn.00470fbd
mov ecx, dword [ebp - 0xfa0]
add esp, 0xc
push ecx
push 1
lea esi, [ebp - 0xf98]
call fcn.004418d0
mov edx, dword [eax + 0x18]
mov eax, dword [0x52ab68]
push edx
push eax
call fcn.004714ed
add esp, 0x10
mov ecx, dword [ebp - 0xfc8]
push ecx
call fcn.004711df
add esp, 4
lea esi, [ebp - 0xf98]
mov edi, eax
call fcn.004418d0
mov dword [eax], edi
mov edx, dword [ebp - 0xfc8]
push edx
push 1
call fcn.004418d0
mov eax, dword [eax + 0x18]
mov ecx, dword [0x52ab68]
push eax
push ecx
call fcn.0046f290
add esp, 0x10
lea esi, [ebp - 0x1028]
mov edi, 0x52bfc8
call fcn.00440ec0
mov esi, eax
lea edi, [ebp - 0xf98]
call fcn.00441930
lea esi, [ebp - 0xf98]
mov edi, eax
call fcn.00441900
inc edi
mov dword [ebp - 0xfbc], edi
fild dword [ebp - 0xfbc]
fidiv dword [ebp - 0xfb4]
fstp dword [ebp - 0xfbc]
fild dword [0x52a934]
fmul dword [ebp - 0xfbc]
call fcn.00473ed0
mov edx, dword [0x52a928]
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, 0x52bfc8
call fcn.00440ee0
mov esi, eax
lea edi, [ebp - 0xf98]
call fcn.00441960
test al, al
jne 0x43fee0
mov eax, dword [ebp - 0xfc8]
push eax
call fcn.0046f56f
mov ecx, dword [ebp - 0xfa0]
add esp, 4
push ecx
call fcn.0046f56f
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.004721d6
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 0x440209
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000005
mov edx, 0x52a948
mov byte [0x52ab6c], bl
call fcn.0040a600
mov eax, dword [0x52a928]
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.00438c20
add esp, 4
jmp 0x440486
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.00446d10
call fcn.004060f0
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 0x511a14
lea edx, [ebp - 0x668]
call fcn.0040a600
add esp, 0xc
push 0x80
lea eax, [ebp - 0x668]
push eax
call edi
lea ecx, [ebp - 0x668]
push ecx
call fcn.004721d6
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 0x50f670
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0xf9c]
push eax
call fcn.0046f0db
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0046f290
mov ecx, dword [0x52bfd8]
sub ecx, dword [0x52bfd4]
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.0046f290
mov esi, dword [ebp - 0xfc4]
add esp, 0x20
cmp esi, ebx
jle 0x440370
mov ecx, dword [0x52ad90]
call fcn.0044a600
mov ecx, dword [0x52a930]
push eax
call fcn.0044a600
push eax
lea eax, [esi*8]
sub eax, esi
add eax, eax
add eax, eax
push eax
xor esi, esi
call fcn.00440f40
lea ecx, [ebp - 0xfd0]
mov edx, eax
call fcn.00449f30
mov ecx, dword [ebp - 0xf9c]
mov edx, dword [ebp - 0xfc4]
add esp, 0xc
push ecx
push edx
push 0x1c
call fcn.00440f40
push eax
call fcn.0046f290
add esp, 0x10
mov eax, dword [ebp - 0xf9c]
push ebx
push ebx
push eax
call fcn.00470fbd
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0046f290
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.00470fbd
mov ecx, dword [ebp - 0xf9c]
add esp, 0x1c
push ecx
push 1
lea edx, [ebp - 0xfc4]
push 4
push edx
call fcn.0046f290
mov eax, dword [ebp - 0xf9c]
push eax
call fcn.0046f56f
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.004721d6
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.0040a030
push eax
lea edx, [ebp - 0xfe8]
mov byte [ebp - 4], 4
call fcn.00441090
lea esi, [ebp - 0x1020]
mov byte [ebp - 4], 1
call fcn.0040a160
lea ecx, [ebp - 0x1048]
push ecx
call fcn.0040a030
push eax
mov edx, 0x52bfc8
mov byte [ebp - 4], 5
call fcn.00441090
lea esi, [ebp - 0x1048]
call fcn.0040a160
mov byte [0x52ab6c], bl
lea esi, [ebp - 0xfe8]
call fcn.0040a160
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.0046e186
mov esp, ebp
pop ebp
ret