Function at 0x4157b0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x41f400
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x424038]
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov ecx, dword [edi + 0x388]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, ecx
mov dword [esp + 0x28], esi
je 0x415830
cmp dword [eax - 0xc], esi
jge 0x415802
mov edx, dword [0x42403c]
add eax, 0xfffffff4
cmp eax, edx
jne 0x415807
cmp dword [ecx - 0xc], esi
jge 0x415817
mov eax, dword [ecx - 8]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00413790
jmp 0x415830
lea ecx, [esp + 0xc]
call fcn.004105b0
mov eax, dword [edi + 0x388]
mov dword [esp + 0xc], eax
add eax, 0xfffffff4
push eax
call ebp
lea ecx, [edi + 0xb4]
push ecx
call fcn.0041a790
add esp, 4
test al, al
jne 0x415a54
lea edx, [esp + 0xc]
push edx
call fcn.0041bc10
mov eax, 0x424560
add esp, 4
test eax, eax
je 0x415868
push 0x424560
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x424560
push eax
lea ecx, [esp + 0x14]
call fcn.004102b0
lea ecx, [esp + 0xc]
push ecx
call fcn.0041a790
add esp, 4
test al, al
jne 0x415895
lea edx, [esp + 0xc]
push edx
call fcn.0041d5d0
add esp, 4
push ebx
lea eax, [esp + 0x10]
push 0x42092c
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00411c80
mov esi, eax
mov ebx, dword [esp + 0x34]
mov eax, dword [esi]
mov byte [esp + 0x2c], 1
mov ecx, dword [ebx]
cmp ecx, eax
je 0x4158f7
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4158d1
mov edx, dword [0x42403c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4158d8
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4158e6
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, ebx
call fcn.00413790
jmp 0x4158f7
mov ecx, ebx
call fcn.004105b0
mov eax, dword [esi]
mov dword [ebx], eax
add eax, 0xfffffff4
push eax
call ebp
mov eax, dword [esp + 0x18]
mov edx, dword [0x42403c]
mov byte [esp + 0x2c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41592b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41592b
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebx]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x415941
mov edx, dword [eax - 4]
test edx, edx
jge 0x415989
mov esi, dword [eax - 8]
test esi, esi
mov dword [esp + 0x34], esi
jle 0x41594e
mov ecx, esi
push ecx
mov ecx, ebx
call fcn.00410180
test eax, eax
jne 0x415960
mov dword [esp + 0x34], eax
jmp 0x41598f
mov edi, dword [ebx]
lea ecx, [esi + 1]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x34]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], edx
call fcn.004101e0
mov edi, dword [esp + 0x14]
mov eax, dword [ebx]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0xb8]
lea ebp, [edi + 0xb8]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x20], esi
jg 0x4159b3
mov edx, dword [eax - 4]
test edx, edx
jge 0x415a01
mov edi, dword [eax - 8]
test edi, edi
mov dword [esp + 0x1c], edi
jle 0x4159c0
mov ecx, edi
push ecx
mov ecx, ebp
call fcn.00410180
test eax, eax
jne 0x4159d2
mov edi, dword [esp + 0x14]
jmp 0x415a04
lea ecx, [edi + 1]
mov edi, dword [ebp]
mov edx, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x20]
mov dword [eax - 8], ecx
call fcn.004101e0
mov edi, dword [esp + 0x14]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x34]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, ebp
mov esi, eax
call fcn.00410210
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp]
push 0xffffffffffffffff
mov dword [ecx - 8], eax
mov edx, dword [ebp]
mov ecx, ebx
mov byte [edx + eax], 0
call fcn.00411ec0
test esi, esi
pop ebx
jne 0x415a54
mov al, byte [edi + 0xe4]
mov ecx, dword [edi + 0xb0]
push eax
push 5
call fcn.00415a80
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040e080
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4