Function at 0x59b088
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor eax, eax
mov al, byte [ebp + 8]
cmp eax, 6
ja case.default.0x59b0a5
jmp dword [eax*4 + 0x59b0ac]
mov eax, dword [ebp - 4]
call fcn.0055e0a4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x59b0fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0061dab8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59b108
mov eax, dword [ebp - 0xc]
call fcn.004028c0
jmp case.default.0x59b0a5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x59b135
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_CopyFileW
jmp case.default.0x59b0a5
mov eax, dword [ebp - 4]
call fcn.0055e068
call fcn.0061eee4
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.gdi32.dll_CopyEnhMetaFileW
push eax
call sub.gdi32.dll_DeleteEnhMetaFile
push ebx
call sub.gdi32.dll_DeleteEnhMetaFile
jmp case.default.0x59b0a5
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0055ddf4
mov dl, 1
mov eax, dword [0x6471e4]
call fcn.00649584
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x14], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x59b190
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x1c]
jmp 0x59b19f
mov eax, dword [ebp - 4]
call fcn.0055e068
call fcn.0061eee4
mov ebx, eax
xor eax, eax
push ebp
push 0x59b1cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00649b6c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59b1d6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x59b1e7
mov eax, dword [ebp - 0x10]
call fcn.00649f48
mov eax, dword [ebp - 0x10]
call fcn.004028c0
jmp case.default.0x59b0a5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 2
jne 0x59b214
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_CopyFileW
jmp case.default.0x59b0a5
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0055ddf4
call fcn.0041349c
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x59b299
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x59b25e
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.005613c8
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.0061ee88
jmp 0x59b284
mov eax, dword [ebp - 4]
call fcn.0055e0a4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.0061dab8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
call fcn.004028c0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59b2a3
mov eax, dword [ebp - 0x14]
call fcn.004028c0
jmp case.default.0x59b0a5
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0055ddf4
mov dl, 1
mov eax, dword [0x53eaa8]
call fcn.00540088
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x59b345
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x59b30a
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.005613c8
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
call fcn.005402e0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
pop ecx
call fcn.0061ed58
jmp 0x59b330
mov eax, dword [ebp - 4]
call fcn.0055e0a4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.0061dab8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
call fcn.004028c0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59b34f
mov eax, dword [ebp - 0x18]
call fcn.004028c0
jmp case.default.0x59b0a5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 1
jne 0x59b37c
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_CopyFileW
jmp case.default.0x59b0a5
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0055ddf4
call fcn.0042db2c
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x59b3f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x59b3c6
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.005613c8
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
call fcn.0061ed58
jmp 0x59b3d8
mov eax, dword [ebp - 4]
call fcn.0055e0f8
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
call fcn.0061dab8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59b3ff
mov eax, dword [ebp - 0x1c]
call fcn.004028c0
jmp case.default.0x59b0a5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 3
jne case.default.0x59b0a5
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_CopyFileW
call fcn.0053a6f4
test al, al
je 0x59b437
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0055ddf4
mov edx, dword [0x66f7d4]
mov edx, dword [edx + 4]
mov eax, dword [ebp - 8]
call fcn.00655098
test al, al
je 0x59b45a
mov eax, dword [0x66f364]
mov byte [eax + 0x11], 1
call fcn.00506b9c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4