Function at 0x413110
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fd3b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x234], eax
cmp edi, ebx
je 0x4133bb
cmp eax, ebx
je 0x4133bb
push ebx
sub esp, 0x1c
mov esi, esp
mov eax, edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x21c], esp
mov byte [esi], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413175
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00404410
call fcn.004066a0
add esp, 0x20
cmp eax, ebx
jne 0x4131d3
push 1
sub esp, 0x1c
mov esi, esp
mov eax, edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x21c], esp
mov byte [esi], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4131b1
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00404410
call fcn.004066a0
add esp, 0x20
cmp eax, ebx
je 0x4133bb
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 4], ebx
call fcn.00406e10
mov dword [ebp - 0x21c], eax
cmp eax, ebx
je 0x413237
lea esi, [ebp - 0x230]
call fcn.0041d3d0
cmp dword [ebp - 0x224], ebx
jne 0x413237
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x413237
lea ecx, [ebp - 0x228]
push ecx
call eax
cmp eax, ebx
je 0x413237
mov dword [ebp - 0x224], 1
xor eax, eax
mov dword [ebp - 0x244], eax
push 0x103
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x113]
mov edx, 0x214
push ebx
push eax
mov dword [ebp - 0x254], ebx
mov word [ebp - 0x244], dx
mov byte [ebp - 0x114], bl
call fcn.005282b0
push edi
lea ecx, [ebp - 0x114]
push 0x104
push ecx
call fcn.00525ef3
mov eax, edi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4132a8
sub eax, edx
mov byte [ebp + eax - 0x114], bl
mov eax, edi
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4132c0
push 0x103
lea edx, [ebp - 0x217]
sub eax, esi
push ebx
push edx
mov byte [ebp + eax - 0x113], bl
mov byte [ebp - 0x218], bl
call fcn.005282b0
mov esi, dword [ebp - 0x234]
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00525ef3
mov eax, esi
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x413308
sub eax, ecx
mov byte [ebp + eax - 0x218], bl
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413320
sub eax, edx
mov byte [ebp + eax - 0x217], bl
lea eax, [ebp - 0x254]
lea ecx, [ebp - 0x114]
lea edx, [ebp - 0x218]
push eax
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x250], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x413371
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
jmp 0x413376
mov esi, 1
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x21c], ebx
je 0x4133a6
cmp dword [ebp - 0x224], ebx
je 0x4133a6
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x4133a6
mov ecx, dword [ebp - 0x228]
push ecx
call eax
test eax, eax
je 0x4133a6
mov dword [ebp - 0x224], ebx
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x4133b7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x4133bd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret 4