Function at 0x42f830
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 0x4d2b22
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.004644c0
mov eax, dword [0x50b618]
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 [0x514930]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x430f71
mov ecx, dword [0x513720]
cmp ecx, ebx
je 0x430f71
call fcn.0043ac90
lea esi, [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, dword [esi]
cmp eax, 0x1b7d6a4
jne 0x430f71
mov byte [0x5134fc], 1
cmp dword [0x5134f8], ebx
jne 0x42f914
push 0xa00000
call fcn.004403dc
add esp, 4
mov dword [0x5134f8], eax
cmp eax, ebx
jne 0x42f914
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000006
mov edx, 0x5132d8
mov byte [0x5134fc], bl
call fcn.00408ae0
mov ecx, dword [0x5132b8]
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, 0x4ff888
call fcn.00429ad0
add esp, 4
jmp 0x430f71
lea edx, [ebp - 0x1020]
push edx
call fcn.00431730
push eax
mov edx, 0x514938
mov dword [ebp - 4], ebx
call fcn.00431a10
lea esi, [ebp - 0x1020]
mov dword [ebp - 4], 0xffffffff
call fcn.004097d0
push ebx
call fcn.00431880
push str.Packing_resource_files._Please_wait.
mov edx, 0x5132d8
mov dword [ebp - 0xfb4], ebx
call fcn.00408ae0
mov eax, dword [0x5132b8]
add esp, 4
push ebx
push ebx
push 0x4c8
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [0x5132bc]
call fcn.0043ac90
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.00431730
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.004634b0
add esp, 0xc
push 0x206
lea edx, [ebp - 0x666]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x668], cx
call fcn.004634b0
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x86e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x870], ax
call fcn.004634b0
add esp, 0xc
push 0x206
lea eax, [ebp - 0x256]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x258], dx
call fcn.004634b0
add esp, 0xc
push 0x206
lea edx, [ebp - 0x45e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x460], cx
call fcn.004634b0
add esp, 0xc
xor eax, eax
push 0x206
lea ecx, [ebp - 0xa76]
push ebx
push ecx
mov word [ebp - 0xa78], ax
call fcn.004634b0
add esp, 0xc
push 0x103
lea edx, [ebp - 0xb7f]
push ebx
push edx
mov byte [ebp - 0xb80], bl
call fcn.004634b0
add esp, 0xc
lea eax, [ebp - 0xd88]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x5130f0
push 0x4fe808
push 0x4fe810
lea edx, [ebp - 0xa78]
call fcn.00408ae0
add esp, 0xc
lea eax, [esi + 0xc22]
push eax
push 0x4fe808
push 0x4fe810
lea edx, [ebp - 0x258]
mov dword [ebp - 0xfec], eax
call fcn.00408ae0
add esp, 0xc
push str..dat
push 0x5130f0
push 0x4fe808
push str._s_s_s
lea edx, [ebp - 0x460]
call fcn.00408ae0
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 0x4fed8c
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0xf9c]
push ecx
call fcn.0045e84b
mov eax, dword [ebp - 0xf9c]
add esp, 0xc
cmp eax, ebx
je 0x42fcfa
push eax
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.00460c0d
add esp, 0x10
cmp eax, ebx
jg 0x42fb6b
mov dword [ebp - 0xfb8], ebx
jmp 0x42fbac
mov eax, dword [ebp - 0xf9c]
push eax
push 1
lea ecx, [ebp - 0xfb8]
push 4
push ecx
call fcn.00460c0d
add esp, 0x10
cmp eax, ebx
jg 0x42fb91
mov dword [ebp - 0xfb8], ebx
jmp 0x42fbac
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.004634b0
add esp, 0xc
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebp - 0x258]
push ecx
call fcn.00461484
mov eax, dword [ebp - 0xfb8]
add esp, 8
cmp eax, ebx
jbe 0x42fc64
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 0x42fc64
mov ecx, dword [ebp - 0xf9c]
lea edx, [ebp - 0x460]
push edx
push ebx
lea eax, [ebp - 0x258]
push eax
push ecx
mov byte [0x5134fc], bl
call fcn.0042f750
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000008
mov edx, 0x5132d8
call fcn.00408ae0
mov edx, dword [0x5132b8]
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.00429ad0
add esp, 4
jmp 0x430f66
push eax
call fcn.00431880
mov ecx, 0x514938
call fcn.00431810
test eax, eax
jbe 0x42fce5
mov eax, dword [ebp - 0xf9c]
mov ecx, dword [ebp - 0xfb8]
push eax
push ecx
push 0x1c
xor esi, esi
call fcn.004318c0
push eax
call fcn.00460c0d
mov ecx, dword [0x513720]
add esp, 0x10
call fcn.0043ac90
mov ecx, dword [0x5132c0]
push eax
lea edx, [ebp - 0xfd0]
push edx
call fcn.0043ac90
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.004318c0
mov ecx, dword [ebp - 0xfb0]
mov edx, eax
call fcn.0043a930
add esp, 0xc
mov edx, dword [ebp - 0xf9c]
push edx
call fcn.0045ecdf
add esp, 4
mov dword [ebp - 0xf9c], ebx
lea eax, [ebp - 0xb80]
push eax
lea esi, [ebp - 0xa78]
call fcn.0043b420
lea ecx, [ebp - 0xfe8]
add esp, 4
push ecx
lea ecx, [ebp - 0xfb4]
lea edx, [ebp - 0xb80]
call fcn.0042f4e0
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 0x430f60
mov ecx, dword [0x514948]
sub ecx, dword [0x514944]
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 0x42ff52
push 6
lea edx, [ebp - 0x460]
push edx
call edi
push 0x4ff964
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0xfa0]
push ecx
call fcn.0045e84b
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
cmp eax, ebx
je 0x42fe63
push 2
push ebx
push eax
call fcn.004606dd
mov edx, dword [ebp - 0xfa0]
add esp, 0xc
push edx
call fcn.004608ff
add esp, 4
push ebx
mov edi, eax
mov eax, dword [ebp - 0xfa0]
push ebx
push eax
call fcn.004606dd
add esp, 0xc
cmp esi, ebx
jle 0x42ff52
cmp edi, 1
jg 0x42ff52
mov edx, dword [ebp - 0xfa0]
lea ecx, [ebp - 0x460]
push ecx
push edx
lea eax, [ebp - 0x258]
push eax
push ebx
mov byte [0x5134fc], bl
call fcn.0042f750
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000001
mov edx, 0x5132d8
call fcn.00408ae0
mov ecx, dword [0x5132b8]
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.00429ad0
add esp, 4
jmp 0x430f66
push 0x4ff994
lea edx, [ebp - 0x460]
push edx
lea eax, [ebp - 0xfa0]
push eax
call fcn.0045e84b
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
cmp eax, ebx
je 0x42fef1
cmp esi, ebx
jle 0x42ff52
lea ecx, [ebp - 0x460]
push ecx
push eax
lea edx, [ebp - 0x258]
push edx
push ebx
mov byte [0x5134fc], bl
call fcn.0042f750
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000002
mov edx, 0x5132d8
call fcn.00408ae0
mov eax, dword [0x5132b8]
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.00429ad0
add esp, 4
jmp 0x430f66
lea ecx, [ebp - 0x460]
push ecx
push ebx
lea edx, [ebp - 0x258]
push edx
push ebx
mov byte [0x5134fc], bl
call fcn.0042f750
push str.Cant_Pack_Resource_File.
push str._s_Error:0x00000007
mov edx, 0x5132d8
call fcn.00408ae0
mov eax, dword [0x5132b8]
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.00429ad0
add esp, 4
jmp 0x430f66
mov ecx, dword [0x5132b8]
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.00431840
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 0x42ffad
call fcn.0045ddc6
mov esi, dword [ebp - 0xf98]
cmp esi, ebx
je 0x42ffbf
cmp esi, dword [ebp - 0xfe8]
je 0x42ffc4
call fcn.0045ddc6
cmp edi, dword [ebp - 0xfac]
je 0x4304ff
mov edx, dword [0x514930]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x430f66
cmp esi, ebx
jne 0x430103
call fcn.0045ddc6
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x42ffff
call fcn.0045ddc6
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.0042f400
add esp, 0xc
mov dword [ebp - 0xfac], eax
mov dword [ebp - 0xfb0], ebx
cmp eax, ebx
je 0x430229
lea esi, [ebp - 0xf98]
call fcn.004321c0
cmp dword [ebp - 0xfb4], ebx
jne 0x4301fd
mov ecx, dword [ebp - 0xfac]
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.004321c0
add eax, 4
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x430060
sub eax, esi
push ebx
push ebx
inc eax
push eax
lea esi, [ebp - 0xf98]
call fcn.004321c0
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.004321c0
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.00408ae0
add esp, 0xc
push 0x4fed8c
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0xfa8]
push ecx
call fcn.0045e84b
mov eax, dword [ebp - 0xfa8]
add esp, 0xc
cmp eax, ebx
jne 0x43010a
mov edx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
lea edi, [ebp - 0x1030]
push edx
lea esi, [ebp - 0xfe8]
call fcn.004319b0
jmp 0x42ff83
mov eax, dword [esi]
jmp 0x42fff5
push eax
push 1
lea edx, [ebp - 0xfb0]
push 4
push edx
call fcn.00460c0d
mov eax, dword [ebp - 0xfa8]
add esp, 0x10
push eax
push 1
lea esi, [ebp - 0xf98]
call fcn.004321c0
mov ecx, dword [eax + 0x18]
mov edx, dword [0x5134f8]
push ecx
push edx
call fcn.00460c0d
mov eax, dword [ebp - 0xfa8]
push eax
call fcn.0045ecdf
add esp, 0x14
mov dword [ebp - 0xfa8], ebx
call fcn.004321c0
mov edx, dword [eax + 0x18]
mov esi, dword [0x5134f8]
call fcn.0043ada0
cmp dword [ebp - 0xfb0], eax
je 0x43019e
mov ecx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
push ecx
lea edi, [ebp - 0x1028]
lea esi, [ebp - 0xfe8]
call fcn.004319b0
mov edx, dword [eax]
mov dword [ebp - 0xf98], edx
jmp 0x42ff8b
lea eax, [ebp - 0x870]
push eax
call fcn.004618f6
add esp, 4
lea esi, [ebp - 0xf98]
call fcn.004321c0
mov ecx, dword [eax]
mov edx, dword [ebp - 0xfa0]
push ebx
push ecx
push edx
call fcn.004606dd
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
push eax
push 1
call fcn.004321c0
mov ecx, dword [eax + 0x18]
mov edx, dword [0x5134f8]
push ecx
push edx
call fcn.0045ea00
mov eax, dword [ebp - 0xfa0]
push 2
push ebx
push eax
call fcn.004606dd
add esp, 0x1c
jmp 0x430203
mov dword [eax], 0xffffffff
lea esi, [ebp - 0xf98]
call fcn.004321c0
mov ecx, dword [ebp - 0xfac]
push ecx
mov ecx, 0x1c
mov edx, eax
call fcn.004379c0
add esp, 4
jmp 0x430415
cmp dword [ebp - 0xfb4], ebx
jne 0x4303ee
mov edx, dword [ebp - 0xfa0]
push 2
push ebx
push edx
call fcn.004606dd
mov eax, dword [ebp - 0xfa0]
add esp, 0xc
push eax
call fcn.004608ff
add esp, 4
lea esi, [ebp - 0xf98]
mov dword [ebp - 0xfac], eax
call fcn.004321c0
mov ecx, dword [ebp - 0xfac]
mov dword [eax], ecx
call fcn.004321c0
add eax, 4
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x430280
sub eax, esi
push ebx
push ebx
inc eax
push eax
lea esi, [ebp - 0xf98]
call fcn.004321c0
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.004321c0
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.00408ae0
add esp, 0xc
push 0x4fed8c
lea edx, [ebp - 0x870]
push edx
lea eax, [ebp - 0xfa8]
push eax
call fcn.0045e84b
mov eax, dword [ebp - 0xfa8]
add esp, 0xc
cmp eax, ebx
jne 0x43032b
mov ecx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
push ecx
lea edi, [ebp - 0x1008]
lea esi, [ebp - 0xfe8]
call fcn.004319b0
mov edx, dword [eax]
mov dword [ebp - 0xf98], edx
jmp 0x42ff8b
push eax
push 1
lea eax, [ebp - 0xfb0]
push 4
push eax
call fcn.00460c0d
mov ecx, dword [ebp - 0xfa8]
add esp, 0x10
push ecx
push 1
lea esi, [ebp - 0xf98]
call fcn.004321c0
mov edx, dword [eax + 0x18]
mov eax, dword [0x5134f8]
push edx
push eax
call fcn.00460c0d
mov ecx, dword [ebp - 0xfa8]
push ecx
call fcn.0045ecdf
add esp, 0x14
mov dword [ebp - 0xfa8], ebx
call fcn.004321c0
mov edx, dword [eax + 0x18]
mov esi, dword [0x5134f8]
call fcn.0043ada0
cmp dword [ebp - 0xfb0], eax
je 0x4303b6
mov edx, dword [ebp - 0xf98]
dec dword [ebp - 0xfa4]
push edi
lea edi, [ebp - 0x1000]
push edx
lea esi, [ebp - 0xfe8]
call fcn.004319b0
jmp 0x42ff83
lea edx, [ebp - 0x870]
push edx
call fcn.004618f6
mov eax, dword [ebp - 0xfa0]
add esp, 4
push eax
push 1
lea esi, [ebp - 0xf98]
call fcn.004321c0
mov ecx, dword [eax + 0x18]
mov edx, dword [0x5134f8]
push ecx
push edx
call fcn.0045ea00
add esp, 0x10
jmp 0x4303ff
lea esi, [ebp - 0xf98]
call fcn.004321c0
mov dword [eax], 0xffffffff
lea esi, [ebp - 0xf98]
call fcn.004321c0
push eax
push 0x514938
call fcn.00431900
mov esi, dword [ebp - 0xfdc]
cmp esi, dword [ebp - 0xfd8]
jbe 0x430428
call fcn.0045ddc6
mov eax, dword [ebp - 0xf98]
cmp eax, ebx
je 0x43043a
cmp eax, dword [ebp - 0xfe8]
je 0x43043f
call fcn.0045ddc6
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 0x4304f2
call fcn.0045ddc6
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x430473
call fcn.0045ddc6
inc esi
mov dword [ebp - 0xfac], esi
fild dword [ebp - 0xfac]
mov edx, dword [0x5132b8]
push ebx
add edi, 0x1c
fidiv dword [ebp - 0xfa4]
mov dword [ebp - 0xf94], edi
fstp dword [ebp - 0xfac]
fld dword [ebp - 0xfac]
fimul dword [0x5132c4]
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 0x42ff94
mov eax, dword [ebp - 0xf98]
mov eax, dword [eax]
jmp 0x430469
lea esi, [ebp - 0x1000]
mov edi, 0x514938
call fcn.00431860
lea esi, [ebp - 0x1008]
mov dword [ebp - 0xfbc], eax
call fcn.00431840
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.00435240
mov eax, dword [ebp - 0xfa0]
add esp, 0x10
cmp eax, ebx
je 0x430568
push eax
call fcn.0045ecdf
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 0x43056e
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0xfb4], ebx
jne 0x4307ea
push ecx
lea edx, [ebp - 0xa78]
mov ecx, esp
mov dword [ebp - 0xfbc], esp
push edx
call fcn.00437500
call fcn.004047e0
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 0x4fe810
lea edx, [ebp - 0x668]
call fcn.00408ae0
add esp, 0xc
push 0x80
lea eax, [ebp - 0x668]
push eax
call edi
lea ecx, [ebp - 0x668]
push ecx
call fcn.004618f6
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 0x4fc508
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0xf9c]
push eax
call fcn.0045e84b
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0045ea00
mov ecx, dword [0x514948]
sub ecx, dword [0x514944]
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.0045ea00
mov esi, dword [ebp - 0xfa4]
add esp, 0x20
cmp esi, ebx
jle 0x4306da
mov ecx, dword [0x513720]
call fcn.0043ac90
mov ecx, dword [0x5132c0]
push eax
call fcn.0043ac90
push eax
lea eax, [esi*8]
sub eax, esi
add eax, eax
add eax, eax
push eax
xor esi, esi
call fcn.004318c0
lea ecx, [ebp - 0xfd0]
mov edx, eax
call fcn.0043a5c0
mov ecx, dword [ebp - 0xf9c]
mov edx, dword [ebp - 0xfa4]
add esp, 0xc
push ecx
push edx
push 0x1c
call fcn.004318c0
push eax
call fcn.0045ea00
add esp, 0x10
mov eax, dword [ebp - 0xf9c]
push ebx
push ebx
push eax
call fcn.004606dd
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0045ea00
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.004606dd
mov ecx, dword [ebp - 0xf9c]
add esp, 0x1c
push ecx
push 1
lea edx, [ebp - 0xfa4]
push 4
push edx
call fcn.0045ea00
mov eax, dword [ebp - 0xf9c]
push eax
call fcn.0045ecdf
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.004618f6
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.00431730
push eax
lea edx, [ebp - 0xfe8]
mov byte [ebp - 4], 2
call fcn.00431a10
lea esi, [ebp - 0x1020]
mov byte [ebp - 4], 1
call fcn.004097d0
lea ecx, [ebp - 0x1020]
push ecx
call fcn.00431730
push eax
mov edx, 0x514938
mov byte [ebp - 4], 3
call fcn.00431a10
lea esi, [ebp - 0x1020]
jmp 0x430f5b
push str.Optimizing_resource_files._Please_wait.
mov edx, 0x5132d8
call fcn.00408ae0
mov edx, dword [0x5132b8]
add esp, 4
push ebx
push ebx
push 0x4c8
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x4fed8c
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0xfa0]
push ecx
call fcn.0045e84b
add esp, 0xc
cmp dword [ebp - 0xfa0], ebx
jne 0x430895
lea edx, [ebp - 0x460]
push edx
push ebx
lea eax, [ebp - 0x258]
push eax
push ebx
mov byte [0x5134fc], bl
call fcn.0042f750
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000003
mov edx, 0x5132d8
call fcn.00408ae0
mov ecx, dword [0x5132b8]
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.00429ad0
add esp, 4
jmp 0x430f66
push str..___
push 0x5130f0
push 0x4fe808
push str._s_s_s
lea edx, [ebp - 0xf90]
call fcn.00408ae0
add esp, 0x10
push 0x80
lea edx, [ebp - 0xf90]
push edx
call edi
lea eax, [ebp - 0xf90]
push eax
call fcn.004618f6
add esp, 4
push 0x4fc508
lea ecx, [ebp - 0xf90]
push ecx
lea edx, [ebp - 0xfc8]
push edx
call fcn.0045e84b
add esp, 0xc
cmp dword [ebp - 0xfc8], ebx
jne 0x430943
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000004
mov edx, 0x5132d8
mov byte [0x5134fc], bl
call fcn.00408ae0
mov eax, dword [0x5132b8]
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.00429ad0
add esp, 4
jmp 0x430f66
mov ecx, dword [0x5132b8]
push ebx
push ebx
push 0x4c9
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [0x514948]
sub ecx, dword [0x514944]
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, 0x514938
mov dword [ebp - 0xfb4], eax
call fcn.00431840
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.00431860
mov esi, eax
lea edi, [ebp - 0xf98]
call fcn.00432250
test al, al
je 0x430c43
lea ecx, [ecx]
call fcn.0042a400
test eax, eax
jne 0x430f66
lea esi, [ebp - 0xf98]
call fcn.004321c0
cmp dword [eax], 0xffffffff
jne 0x430b31
call fcn.004321c0
add eax, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4309f0
push ebx
sub eax, edx
push ebx
inc eax
push eax
lea esi, [ebp - 0xf98]
call fcn.004321c0
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.004321c0
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.00408ae0
add esp, 0xc
push 0x4fed8c
lea ecx, [ebp - 0x870]
push ecx
lea edx, [ebp - 0xfa8]
push edx
call fcn.0045e84b
mov eax, dword [ebp - 0xfa8]
add esp, 0xc
cmp eax, ebx
jne 0x430aa7
lea edi, [ebp - 0x1000]
mov eax, dword [ebp - 0xf94]
mov ecx, dword [ebp - 0xf98]
push eax
push ecx
mov esi, 0x514938
call fcn.004319b0
mov edx, dword [eax]
mov eax, dword [eax + 4]
dec dword [ebp - 0xfb4]
mov dword [ebp - 0xf98], edx
mov dword [ebp - 0xf94], eax
jmp 0x430c1e
push eax
push 1
lea ecx, [ebp - 0xfb0]
push 4
push ecx
mov dword [ebp - 0xfb0], ebx
call fcn.00460c0d
mov edx, dword [ebp - 0xfa8]
add esp, 0x10
push edx
push 1
lea esi, [ebp - 0xf98]
call fcn.004321c0
mov eax, dword [eax + 0x18]
mov ecx, dword [0x5134f8]
push eax
push ecx
call fcn.00460c0d
mov edx, dword [ebp - 0xfa8]
push edx
call fcn.0045ecdf
add esp, 0x14
mov dword [ebp - 0xfa8], ebx
call fcn.004321c0
mov edx, dword [eax + 0x18]
mov esi, dword [0x5134f8]
call fcn.0043ada0
cmp dword [ebp - 0xfb0], eax
je 0x430b20
lea edi, [ebp - 0x1008]
jmp 0x430a73
lea ecx, [ebp - 0x870]
push ecx
call fcn.004618f6
add esp, 4
jmp 0x430b6f
call fcn.004321c0
mov edx, dword [eax]
mov eax, dword [ebp - 0xfa0]
push ebx
push edx
push eax
call fcn.004606dd
mov ecx, dword [ebp - 0xfa0]
add esp, 0xc
push ecx
push 1
lea esi, [ebp - 0xf98]
call fcn.004321c0
mov edx, dword [eax + 0x18]
mov eax, dword [0x5134f8]
push edx
push eax
call fcn.00460c0d
add esp, 0x10
mov ecx, dword [ebp - 0xfc8]
push ecx
call fcn.004608ff
add esp, 4
lea esi, [ebp - 0xf98]
mov edi, eax
call fcn.004321c0
mov dword [eax], edi
mov edx, dword [ebp - 0xfc8]
push edx
push 1
call fcn.004321c0
mov eax, dword [eax + 0x18]
mov ecx, dword [0x5134f8]
push eax
push ecx
call fcn.0045ea00
add esp, 0x10
lea esi, [ebp - 0x1028]
mov edi, 0x514938
call fcn.00431840
mov esi, eax
lea edi, [ebp - 0xf98]
call fcn.00432220
lea esi, [ebp - 0xf98]
mov edi, eax
call fcn.004321f0
inc edi
mov dword [ebp - 0xfbc], edi
fild dword [ebp - 0xfbc]
fidiv dword [ebp - 0xfb4]
fstp dword [ebp - 0xfbc]
fild dword [0x5132c4]
fmul dword [ebp - 0xfbc]
call fcn.00463640
mov edx, dword [0x5132b8]
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, 0x514938
call fcn.00431860
mov esi, eax
lea edi, [ebp - 0xf98]
call fcn.00432250
test al, al
jne 0x4309c0
mov eax, dword [ebp - 0xfc8]
push eax
call fcn.0045ecdf
mov ecx, dword [ebp - 0xfa0]
add esp, 4
push ecx
call fcn.0045ecdf
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.004618f6
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 0x430ce9
push str.Cant_Optimize_Resource_File.
push str._s_Error:0x00000005
mov edx, 0x5132d8
mov byte [0x5134fc], bl
call fcn.00408ae0
mov eax, dword [0x5132b8]
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.00429ad0
add esp, 4
jmp 0x430f66
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.00437500
call fcn.004047e0
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 0x4fe810
lea edx, [ebp - 0x668]
call fcn.00408ae0
add esp, 0xc
push 0x80
lea eax, [ebp - 0x668]
push eax
call edi
lea ecx, [ebp - 0x668]
push ecx
call fcn.004618f6
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 0x4fc508
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0xf9c]
push eax
call fcn.0045e84b
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0045ea00
mov ecx, dword [0x514948]
sub ecx, dword [0x514944]
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.0045ea00
mov esi, dword [ebp - 0xfc4]
add esp, 0x20
cmp esi, ebx
jle 0x430e50
mov ecx, dword [0x513720]
call fcn.0043ac90
mov ecx, dword [0x5132c0]
push eax
call fcn.0043ac90
push eax
lea eax, [esi*8]
sub eax, esi
add eax, eax
add eax, eax
push eax
xor esi, esi
call fcn.004318c0
lea ecx, [ebp - 0xfd0]
mov edx, eax
call fcn.0043a5c0
mov ecx, dword [ebp - 0xf9c]
mov edx, dword [ebp - 0xfc4]
add esp, 0xc
push ecx
push edx
push 0x1c
call fcn.004318c0
push eax
call fcn.0045ea00
add esp, 0x10
mov eax, dword [ebp - 0xf9c]
push ebx
push ebx
push eax
call fcn.004606dd
mov ecx, dword [ebp - 0xf9c]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0xfd0]
push 8
push edx
call fcn.0045ea00
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.004606dd
mov ecx, dword [ebp - 0xf9c]
add esp, 0x1c
push ecx
push 1
lea edx, [ebp - 0xfc4]
push 4
push edx
call fcn.0045ea00
mov eax, dword [ebp - 0xf9c]
push eax
call fcn.0045ecdf
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.004618f6
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.00431730
push eax
lea edx, [ebp - 0xfe8]
mov byte [ebp - 4], 4
call fcn.00431a10
lea esi, [ebp - 0x1020]
mov byte [ebp - 4], 1
call fcn.004097d0
lea ecx, [ebp - 0x1048]
push ecx
call fcn.00431730
push eax
mov edx, 0x514938
mov byte [ebp - 4], 5
call fcn.00431a10
lea esi, [ebp - 0x1048]
call fcn.004097d0
mov byte [0x5134fc], bl
lea esi, [ebp - 0xfe8]
call fcn.004097d0
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.0045d99c
mov esp, ebp
pop ebp
ret