Function at 0x59e040
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.0x59e05d
jmp dword [eax*4 + 0x59e064]
mov eax, dword [ebp - 4]
call fcn.0056105c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x59e0b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00620ff0
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 0x59e0c0
mov eax, dword [ebp - 0xc]
call fcn.004028c0
jmp case.default.0x59e05d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x59e0ed
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.0x59e05d
mov eax, dword [ebp - 4]
call fcn.00561020
call fcn.0062241c
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.0x59e05d
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00560dac
mov dl, 1
mov eax, dword [0x64a85c]
call fcn.0064cbfc
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 0x59e148
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x1c]
jmp 0x59e157
mov eax, dword [ebp - 4]
call fcn.00561020
call fcn.0062241c
mov ebx, eax
xor eax, eax
push ebp
push 0x59e184
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.0064d1e4
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 0x59e18e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x59e19f
mov eax, dword [ebp - 0x10]
call fcn.0064d5c0
mov eax, dword [ebp - 0x10]
call fcn.004028c0
jmp case.default.0x59e05d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 2
jne 0x59e1cc
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.0x59e05d
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00560dac
call fcn.00413cfc
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x59e251
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x59e216
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00564380
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.006223c0
jmp 0x59e23c
mov eax, dword [ebp - 4]
call fcn.0056105c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00620ff0
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 0x59e25b
mov eax, dword [ebp - 0x14]
call fcn.004028c0
jmp case.default.0x59e05d
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00560dac
mov dl, 1
mov eax, dword [0x541998]
call fcn.00542f78
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x59e2fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x59e2c2
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00564380
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
call fcn.005431d0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
pop ecx
call fcn.00622290
jmp 0x59e2e8
mov eax, dword [ebp - 4]
call fcn.0056105c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00620ff0
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 0x59e307
mov eax, dword [ebp - 0x18]
call fcn.004028c0
jmp case.default.0x59e05d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 1
jne 0x59e334
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.0x59e05d
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00560dac
call fcn.0042e378
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x59e3ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x59e37e
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00564380
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
call fcn.00622290
jmp 0x59e390
mov eax, dword [ebp - 4]
call fcn.005610b0
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00620ff0
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 0x59e3b7
mov eax, dword [ebp - 0x1c]
call fcn.004028c0
jmp case.default.0x59e05d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 3
jne case.default.0x59e05d
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.0053d548
test al, al
je 0x59e3ef
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00560dac
mov edx, dword [0x67283c]
mov edx, dword [edx + 4]
mov eax, dword [ebp - 8]
call fcn.006586c0
test al, al
je 0x59e412
mov eax, dword [0x6723cc]
mov byte [eax + 0x11], 1
call fcn.00509530
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4