Function at 0x54f380
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0d38
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6ac30c]
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 ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov ecx, dword [0x6da01c]
mov edi, dword [0x6da018]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebp - 4], 2
jne 0x54f419
cmp byte [ebp + 0x24], al
je 0x54f5be
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], al
jb 0x54f72a
mov ecx, dword [ebp + 8]
push ecx
jmp 0x54f722
cmp byte [ebp + 0x24], 0
je 0x54f5be
cmp edi, dword [0x6da01c]
je 0x54f6e8
nop
push 0xffffffffffffffff
push esi
push 0x60d7b0
lea ecx, [ebp - 0x2c]
call fcn.0040bf50
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
push esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push edi
mov byte [ecx], 0
call fcn.0040bf50
lea edx, [ebp - 0x48]
push edx
mov ecx, ebx
call fcn.0054db80
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.0044e220
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], 2
jb 0x54f48c
mov eax, dword [ebp - 0x48]
push eax
call fcn.00599ae9
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
push esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push edi
mov byte [ecx], 0
call fcn.0040bf50
lea ecx, [ebp - 0x48]
push ecx
mov ecx, ebx
call fcn.0054ddd0
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0044c940
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], 2
jb 0x54f4db
mov edx, dword [ebp - 0x48]
push edx
call fcn.00599ae9
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x2c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push eax
mov byte [ecx], 0
call fcn.0040bf50
mov ecx, ebx
call fcn.0054ce60
mov ecx, dword [ebp - 0x58]
push 0xffffffffffffffff
add ecx, 0xffffffe4
push esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0044c940
mov ecx, dword [ebp - 0x2c]
mov eax, 0x10
cmp dword [ebp - 0x18], eax
jae 0x54f525
lea ecx, [ebp - 0x2c]
cmp dword [edi + 0x14], eax
jb 0x54f52e
mov eax, dword [edi]
jmp 0x54f530
mov eax, edi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x54f5aa
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x6da01c]
push edx
push edi
push eax
lea ecx, [edi + 0x1c]
push ecx
call fcn.00413300
mov eax, dword [0x6da01c]
lea esi, [eax - 0x1c]
add esp, 0x10
mov dword [ebp - 0x4c], eax
cmp esi, eax
je 0x54f593
cmp dword [esi + 0x14], 0x10
jb 0x54f575
mov edx, dword [esi]
push edx
call fcn.00599ae9
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
cmp esi, dword [ebp - 0x4c]
jne 0x54f564
mov eax, dword [0x6da01c]
sub eax, 0x1c
xor esi, esi
mov dword [0x6da01c], eax
cmp edi, eax
jne 0x54f430
jmp 0x54f6d6
add edi, 0x1c
cmp edi, dword [0x6da01c]
jne 0x54f430
jmp 0x54f6d6
push 0xffffffffffffffff
push esi
push 0x60d7b0
lea ecx, [ebp - 0x2c]
call fcn.0040bf50
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
push esi
lea eax, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push eax
mov byte [ecx], 0
call fcn.0040bf50
lea ecx, [ebp - 0x48]
push ecx
mov ecx, ebx
call fcn.0054db80
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.0044e220
mov edi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], edi
jb 0x54f621
mov edx, dword [ebp - 0x48]
push edx
call fcn.00599ae9
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
push esi
lea eax, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push eax
mov byte [ecx], 0
call fcn.0040bf50
lea ecx, [ebp - 0x48]
push ecx
mov ecx, ebx
call fcn.0054ddd0
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.0044c940
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], edi
jb 0x54f672
mov edx, dword [ebp - 0x48]
push edx
call fcn.00599ae9
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x2c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push eax
mov byte [ecx], 0
call fcn.0040bf50
mov ecx, ebx
call fcn.0054ce60
mov ecx, dword [ebp - 0x58]
push 0xffffffffffffffff
add ecx, 0xffffffe4
push esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0044c940
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x54f6b7
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x54f6c2
lea eax, [ebp + 8]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x54f6d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x18], 0x10
jb 0x54f6e8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00599ae9
add esp, 4
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
cmp edi, esi
je 0x54f718
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x50]
push ecx
push edx
push edi
call fcn.00413090
push edi
call fcn.00599ae9
add esp, 0x14
cmp dword [ebp + 0x1c], 0x10
jb 0x54f72a
mov eax, dword [ebp + 8]
push eax
call fcn.00599ae9
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 - 0x10]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 0x20