Function at 0x404f30
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bb17
mov eax, dword fs:[0]
push eax
mov eax, 0x68e0
call fcn.0041a300
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x206
xor esi, esi
lea ecx, [ebp - 0x21a]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0x39c0], edi
mov word [ebp - 0x21c], ax
call fcn.00419b60
mov eax, 7
xor edx, edx
add esp, 0xc
mov dword [ebp - 0xa7c], eax
mov dword [ebp - 0xa80], esi
mov word [ebp - 0xa90], dx
mov dword [ebp - 4], esi
mov dword [ebp - 0xa44], eax
xor eax, eax
mov dword [ebp - 0xa48], esi
mov word [ebp - 0xa58], ax
push 0x2f0c
lea ecx, [ebp - 0x39bc]
push 0x43f128
push ecx
mov byte [ebp - 4], 1
call fcn.00419be0
add esp, 0xc
push 0x2f0c
lea edx, [ebp - 0x39bc]
push edx
lea eax, [ebp - 0x68ec]
push eax
call fcn.00419be0
add esp, 0xc
push 0x2f0c
lea ecx, [ebp - 0x68ec]
push ecx
lea edx, [ebp - 0x39bc]
push edx
call fcn.00419be0
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x422]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x424], ax
call fcn.00419b60
mov edx, dword [edi + 0x2f28]
lea esi, [edi + 0x5e5c]
mov ebx, 8
add esp, 0xc
mov dword [ebp - 0x39d8], edx
cmp dword [esi + 0x14], ebx
jb 0x40504d
mov eax, dword [esi]
jmp 0x40504f
mov eax, esi
push str.Mixin.SFX
push eax
push 0x433890
lea eax, [ebp - 0x424]
push 0x104
push eax
call fcn.00418ae3
add esp, 0x14
cmp dword [edi + 0x14], ebx
jb 0x405077
mov eax, dword [edi]
jmp 0x405079
mov eax, edi
push 0
lea ecx, [ebp - 0x424]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4050d4
push str.MIXIN_TITLE_CREATE_TEMPFILE_FAILED
push 0x442430
mov edi, 0x43a738
call fcn.004011c0
mov eax, dword [0x43a738]
add esp, 8
cmp dword [0x43a74c], ebx
jae 0x4050b3
mov eax, edi
lea edx, [ebp - 0x21c]
sub edx, eax
jmp 0x4050c0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4050c0
jmp 0x4056de
push 0
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edi, eax
test edi, edi
je 0x405715
mov ebx, dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push 0x2f0c
lea eax, [ebp - 0x39bc]
push eax
push 0
push str.SFX_INFO
push 0xa
push edi
call ebx
test eax, eax
je 0x405715
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x405715
lea ecx, [ebp - 0x424]
push ecx
call fcn.00416140
add esp, 4
mov dword [ebp - 0x39bc], eax
test eax, eax
jne 0x405184
push str.MIXIN_TITLE_GET_PROG_INFO_FAILED
push 0x442430
mov edi, 0x43a738
call fcn.004011c0
mov eax, dword [0x43a738]
add esp, 8
cmp dword [0x43a74c], 8
jae 0x405164
mov eax, edi
lea edx, [ebp - 0x21c]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405170
jmp 0x405715
push 0
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edi, eax
test edi, edi
je 0x405715
push 0x2f0c
lea eax, [ebp - 0x39bc]
push eax
push 0
push str.SFX_INFO
push 0xa
push edi
call ebx
test eax, eax
je 0x405715
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x405715
lea ecx, [ebp - 0x424]
push ecx
call fcn.00416140
add esp, 4
cmp dword [ebp - 0x39bc], eax
je 0x405228
push str.MIXIN_TITLE_SET_PROG_INFO_FAILED
push 0x442430
mov edi, 0x43a738
call fcn.004011c0
mov eax, dword [0x43a738]
add esp, 8
cmp dword [0x43a74c], 8
jae 0x40520c
mov eax, edi
lea edx, [ebp - 0x21c]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x405214
jmp 0x4056de
mov edx, dword [ebp - 0x39c0]
push 0xffffffffffffffff
push 0
push edx
lea ecx, [ebp - 0xa90]
call fcn.004014e0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x62a]
push ecx
mov word [ebp - 0x62c], ax
call fcn.00419b60
add esp, 0xc
mov ebx, 1
lea edi, [ebp - 0xa90]
call fcn.00406850
test eax, eax
jg 0x405284
push 0xffffffffffffffff
push 0
mov edx, edi
push edx
lea ecx, [ebp - 0xa58]
call fcn.004014e0
jmp 0x4052c1
mov ecx, dword [ebp - 0xa80]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea edx, [ebp - 0xa74]
push edx
lea ecx, [ebp - 0xa90]
call fcn.004064f0
push eax
lea ecx, [ebp - 0xa58]
mov byte [ebp - 4], 2
call fcn.00406670
lea ecx, [ebp - 0xa74]
mov byte [ebp - 4], 1
call fcn.00401470
mov ecx, dword [ebp - 0xa58]
mov ebx, 8
cmp dword [ebp - 0xa44], ebx
jae 0x4052da
lea ecx, [ebp - 0xa58]
cmp dword [esi + 0x14], ebx
jb 0x4052e3
mov eax, dword [esi]
jmp 0x4052e5
mov eax, esi
push ecx
push eax
push 0x433a58
lea eax, [ebp - 0x62c]
push 0x104
push eax
call fcn.00418ae3
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x62c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x39c4], edi
cmp edi, 0xffffffff
jne 0x405375
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MIXIN_TITLE_CREATE_FILE_FAILED
push 0x442430
mov edi, 0x43a738
call fcn.004011c0
mov eax, dword [0x43a738]
add esp, 0xc
cmp dword [0x43a74c], ebx
jae 0x405359
mov eax, edi
lea edx, [ebp - 0x21c]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x405361
jmp 0x4056e7
push edi
xor ecx, ecx
lea edx, [ebp - 0x424]
call fcn.0040d7e0
add esp, 4
test eax, eax
jne 0x4053d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MIXIN_TITLE_WRITE_FILE_FAILED
push 0x442430
mov edi, 0x43a738
call fcn.004011c0
mov eax, dword [0x43a738]
add esp, 0xc
cmp dword [0x43a74c], ebx
jae 0x4053b7
mov eax, edi
lea edx, [ebp - 0x21c]
sub edx, eax
nop
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4053c0
jmp 0x4056de
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 8], 0
mov esi, dword [ebp - 0x39c0]
jne 0x405475
cmp dword [esi + 0x14], ebx
jb 0x4053fa
mov eax, dword [esi]
jmp 0x4053fc
mov eax, esi
push eax
call fcn.00416140
add esp, 4
cmp dword [esi + 0x14], ebx
jb 0x40540e
mov ecx, dword [esi]
jmp 0x405410
mov ecx, esi
mov edx, dword [ebp - 0x39bc]
sub eax, edx
push eax
push edi
mov eax, edx
call fcn.0040d240
add esp, 8
test eax, eax
jne 0x405859
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MIXIN_TITLE_WRITE_FILE_FAILED
push 0x442430
mov edi, 0x43a738
call fcn.004011c0
mov eax, dword [0x43a738]
add esp, 0xc
cmp dword [0x43a74c], ebx
jae 0x405459
mov eax, edi
lea edx, [ebp - 0x21c]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x405461
jmp 0x4056de
cmp dword [esi + 0x14], ebx
jb 0x40547e
mov eax, dword [esi]
jmp 0x405480
mov eax, esi
push eax
call fcn.00416140
add esp, 4
push esi
call fcn.00404dd0
cmp dword [esi + 0x14], ebx
jb 0x405498
mov ecx, dword [esi]
jmp 0x40549a
mov ecx, esi
mov edx, dword [ebp - 0x39bc]
sub eax, edx
push eax
push edi
mov eax, edx
call fcn.0040d240
add esp, 8
test eax, eax
jne 0x405554
push str.MIXIN_TITLE_CAPTION_ERROR
push 0x442430
mov edi, 0x43a754
call fcn.004011c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MIXIN_TITLE_WRITE_FILE_FAILED
push 0x442430
mov edi, 0x43a738
call fcn.004011c0
mov ecx, dword [0x43a754]
add esp, 0xc
cmp dword [0x43a768], ebx
jae 0x4054fe
mov ecx, 0x43a754
mov eax, dword [0x43a738]
cmp dword [0x43a74c], ebx
jae 0x405510
mov eax, 0x43a738
push 0x10
push ecx
push eax
mov eax, dword [esi + 0x5e50]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x43a738]
cmp dword [0x43a74c], ebx
jae 0x405533
mov eax, 0x43a738
lea edx, [ebp - 0x21c]
sub edx, eax
jmp 0x405540
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x405540
jmp 0x4056de
mov eax, dword [ebp - 0x39d8]
cmp eax, dword [esi + 0x2f2c]
je 0x405859
lea esi, [eax + 8]
push 0x208
lea ecx, [ebp - 0x834]
push 0
push ecx
call fcn.00419b60
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x405589
mov eax, dword [esi]
jmp 0x40558b
mov eax, esi
push eax
push 0x433ae8
lea edx, [ebp - 0x834]
push 0x104
push edx
call fcn.00418ae3
add esp, 0x10
mov ebx, 1
mov edi, esi
call fcn.00406850
push eax
push 0
lea eax, [ebp - 0xa74]
push eax
mov ecx, esi
call fcn.004064f0
mov eax, dword [ebp - 0x39c0]
mov byte [ebp - 4], 3
cmp dword [eax + 0x5e8c], 8
mov ebx, eax
jb 0x4055df
mov edx, dword [ebx + 0x5e78]
jmp 0x4055e7
mov edx, eax
add edx, 0x5e78
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4055f0
sub eax, edi
sar eax, 1
mov edi, eax
mov eax, dword [ebp - 0xa64]
push edx
lea ecx, [ebp - 0xa74]
call fcn.004068d0
test eax, eax
jne 0x405783
mov ecx, dword [ebp - 0x39c4]
push ecx
xor ecx, ecx
lea edx, [ebp - 0x834]
call fcn.0040d7e0
add esp, 4
test eax, eax
jne 0x405827
push str.MIXIN_TITLE_CAPTION_ERROR
push 0x442430
mov edi, 0x43a754
call fcn.004011c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MIXIN_TITLE_WRITE_FILE_FAILED
push 0x442430
mov edi, 0x43a738
call fcn.004011c0
mov ecx, dword [0x43a754]
mov esi, 8
add esp, 0xc
cmp dword [0x43a768], esi
jae 0x405687
mov ecx, 0x43a754
mov eax, dword [0x43a738]
cmp dword [0x43a74c], esi
jae 0x405699
mov eax, 0x43a738
mov edx, dword [ebx + 0x5e50]
push 0x10
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x43a738]
cmp dword [0x43a74c], esi
jae 0x4056bc
mov eax, 0x43a738
lea edx, [ebp - 0x21c]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4056c4
lea ecx, [ebp - 0xa74]
call fcn.00401470
cmp dword [ebp - 0x39c4], 0
je 0x4056f4
mov edx, dword [ebp - 0x39c4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x39c0]
mov edx, dword [ecx + 0x5e54]
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x40b
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, 8
cmp dword [ebp - 0xa44], esi
jb 0x405731
mov eax, dword [ebp - 0xa58]
push eax
call fcn.0041866f
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa44], 7
mov dword [ebp - 0xa48], 0
mov word [ebp - 0xa58], cx
cmp dword [ebp - 0xa7c], esi
jb 0x405765
mov edx, dword [ebp - 0xa90]
push edx
call fcn.0041866f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x5e88]
mov eax, dword [esi + 0x10]
sub eax, ecx
push eax
inc ecx
push ecx
lea edx, [ebp - 0xaac]
push edx
mov ecx, esi
call fcn.004064f0
push eax
lea ecx, [ebp - 0xa74]
mov byte [ebp - 4], 4
call fcn.00406670
lea ecx, [ebp - 0xaac]
mov byte [ebp - 4], 3
call fcn.00401470
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0xa3a]
push ecx
mov word [ebp - 0xa3c], ax
call fcn.00419b60
mov eax, dword [ebp - 0xa74]
add esp, 0xc
cmp dword [ebp - 0xa60], 8
jae 0x4057f1
lea eax, [ebp - 0xa74]
push eax
push 0x433ae8
lea edx, [ebp - 0xa3c]
push 0x104
push edx
call fcn.00418ae3
mov eax, dword [ebp - 0x39c4]
push eax
lea ecx, [ebp - 0xa3c]
lea edx, [ebp - 0x834]
call fcn.0040d7e0
add esp, 0x14
test eax, eax
je 0x40588a
lea ecx, [ebp - 0xa74]
add esi, 0x24
mov byte [ebp - 4], 1
call fcn.00401470
lea ecx, [esi - 8]
cmp ecx, dword [ebx + 0x2f2c]
jne 0x405569
mov esi, dword [ebp - 0x39c0]
mov edi, dword [ebp - 0x39c4]
mov ebx, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x39cc], eax
mov dword [ebp - 0x39c8], eax
mov dword [ebp - 0x39d4], eax
mov dword [ebp - 0x39d0], eax
cmp dword [esi + 0x14], ebx
jb 0x405928
mov eax, dword [esi]
jmp 0x40592a
push str.MIXIN_TITLE_CAPTION_ERROR
push 0x442430
mov edi, 0x43a754
call fcn.004011c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MIXIN_TITLE_WRITE_FILE_FAILED
push 0x442430
mov edi, 0x43a738
call fcn.004011c0
mov ecx, dword [0x43a754]
mov esi, 8
add esp, 0xc
cmp dword [0x43a768], esi
jae 0x4058d7
mov ecx, 0x43a754
mov eax, dword [0x43a738]
cmp dword [0x43a74c], esi
jae 0x4058e9
mov eax, 0x43a738
push 0x10
push ecx
push eax
mov eax, dword [ebx + 0x5e50]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x43a738]
cmp dword [0x43a74c], esi
jae 0x40590c
mov eax, 0x43a738
lea edx, [ebp - 0x21c]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x405914
jmp 0x4056d3
mov eax, esi
lea ecx, [ebp - 0x39d4]
push ecx
lea edx, [ebp - 0x39cc]
push edx
push eax
call fcn.00416190
add esp, 0xc
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x14], ebx
jb 0x405952
mov eax, dword [esi]
jmp 0x405954
mov eax, esi
push 3
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4059e4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
je 0x4059e4
mov edi, dword [ebp - 0x39c0]
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x405987
mov edi, dword [edi]
call ebx
push eax
push edi
lea ecx, [ebp - 0x62c]
push ecx
push str.g_wzParentAppNameTmp_s_g_wzParentAppName_s_error_d
call fcn.004166a0
add esp, 0x10
call ebx
push eax
push str.MIXIN_TITLE_RENAME_FILE_FAILED
push 0x442430
mov edi, 0x43a738
call fcn.004011c0
mov eax, dword [0x43a738]
add esp, 0xc
cmp dword [0x43a74c], esi
jae 0x4059c8
mov eax, edi
lea edx, [ebp - 0x21c]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4059d0
jmp 0x4056f4
mov eax, dword [ebp - 0x39c0]
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x4059f6
mov eax, dword [eax]
lea edx, [ebp - 0x39d4]
push edx
lea ecx, [ebp - 0x39cc]
push ecx
push eax
call fcn.004161e0
add esp, 0xc
push str.MIXIN_TITLE_OPER_OK
push 0x442430
mov edi, 0x43a738
call fcn.004011c0
mov eax, dword [0x43a738]
add esp, 8
cmp dword [0x43a74c], esi
jae 0x405a33
mov eax, edi
lea edx, [ebp - 0x21c]
sub edx, eax
jmp 0x405a40
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x405a40
jmp 0x4056f4