Function at 0x40c234
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 8
call fcn.0044402e
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x4a171c
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.0044402e
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x4a171c
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
call fcn.00408742
mov dword [ebp - 0x10], eax
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40c298
mov eax, 0x4a171c
push eax
push 1
mov ebx, 0x168
call fcn.00445310
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40c2be
push ebx
call fcn.0044401c
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4a1cbc
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40c2e3
mov eax, 0x4a1734
push eax
push 3
mov ebx, 0x190
call fcn.004464f0
add esp, 0x28
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c309
push ebx
call fcn.0044401c
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40c32b
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40c327
imul eax, dword [ebx]
jmp 0x40c31c
mov ecx, eax
test ecx, ecx
je 0x40c34a
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40c343
push ebx
push eax
call fcn.0044401c
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40c331
call fcn.0044401c
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
call fcn.004012fd
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jne 0x40c5d0
mov ebx, dword [ebp - 4]
call fcn.00401131
mov eax, 0
cmp eax, ecx
jl 0x40c393
push 0xc6
push 0x4010b79
push 1
call fcn.00444022
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4a1a81
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x40c3c2
mov eax, 0x4a1734
push eax
push 3
mov ebx, 0x190
call fcn.004464f0
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40c3fa
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40c3f6
imul eax, dword [ebx]
jmp 0x40c3eb
mov ecx, eax
test ecx, ecx
je 0x40c419
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40c412
push ebx
push eax
call fcn.0044401c
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40c400
call fcn.0044401c
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.004012fd
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40c5cd
mov ebx, dword [ebp - 8]
call fcn.00401131
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40c46b
push 0x123
push 0x4010b79
push 4
call fcn.00444022
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40c488
push 0x123
push 0x4010b79
push 1
call fcn.00444022
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
call fcn.00401131
mov eax, 1
cmp eax, ecx
jl 0x40c4b8
push 0x143
push 0x4010b79
push 1
call fcn.00444022
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
call fcn.00401131
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40c4e7
push 0x174
push 0x4010b79
push 4
call fcn.00444022
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40c504
push 0x174
push 0x4010b79
push 1
call fcn.00444022
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esp
mov ebx, dword [ebp - 0x18]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40c53a
push 0x174
push 0x4010b79
push 6
call fcn.00444022
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x90c
call fcn.00444e20
add esp, 0x10
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
mov ecx, 2
call fcn.00401bcb
add esp, 8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40c57f
push ebx
call fcn.0044401c
add esp, 4
mov dword [ebp - 0x2c], esp
push 0
push dword [ebp - 0x28]
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40c5b5
push 0x174
push 0x4010b79
push 6
call fcn.00444022
add esp, 0xc
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40c5c5
push ebx
call fcn.0044401c
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x40c436
add esp, 0xc
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40c5ee
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40c5ea
imul eax, dword [ebx]
jmp 0x40c5df
mov ecx, eax
test ecx, ecx
je 0x40c60d
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40c606
push ebx
push eax
call fcn.0044401c
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40c5f4
call fcn.0044401c
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40c633
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40c62f
imul eax, dword [ebx]
jmp 0x40c624
mov ecx, eax
test ecx, ecx
je 0x40c652
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40c64b
push ebx
push eax
call fcn.0044401c
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40c639
call fcn.0044401c
add esp, 4
mov esp, ebp
pop ebp
ret 4