Function at 0x10001720
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027942
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
mov edi, ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x10001c80
push str._bbWinMain_0
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
sub eax, ebx
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x10001c80
mov esi, dword [ebp + 8]
push 0
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10001c80
push esi
call fcn.100043a0
test al, al
je 0x10001c80
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call fcn.10004420
lea ecx, [ebp - 0xd0]
call fcn.10026590
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
mov dword [ebp - 0x94], 0x10029420
mov dword [ebp - 0x84], 0x10029428
call fcn.100026b0
mov eax, dword [ebp - 0x94]
xorps xmm0, xmm0
push 0
mov ebx, 8
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x94], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x98], eax
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x94]
movlpd qword [ebp - 0x8c], xmm0
add ecx, dword [eax + 4]
lea eax, [ebp - 0xd0]
push eax
call fcn.10003f60
mov eax, dword [ebp - 0x84]
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x84], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x88], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x94], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x98], eax
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x84]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 4
push eax
mov byte [ebp - 4], 5
call fcn.10004200
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x84]
cdq
push edx
push eax
push dword [edi + 4]
call fcn.10004200
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x84]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.10004200
mov eax, dword [edi + 0x14]
mov esi, dword [eax]
cmp esi, eax
je 0x100019e5
nop dword [eax]
nop dword [eax + eax]
cmp dword [esi + 0x20], 0x7fffffff
lea eax, [esi + 0x10]
mov byte [ebp + 0xc], 0
je 0x10001c9a
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x1000190e
mov ecx, dword [eax]
push 1
lea edx, [ebp + 0xc]
push edx
mov edx, dword [eax + 0x10]
push edx
push ecx
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.100027e0
or ebx, 4
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0
push dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x84]
push eax
mov byte [ebp - 4], 6
call fcn.10004200
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x84]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.10004200
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 5
cmp ecx, 0xf
jbe 0x10001999
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000198f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001c95
push ecx
push edx
call fcn.10008b42
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x100019c4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100019c0
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x100019c0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100019b0
mov esi, eax
jmp 0x100019dc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x100019dc
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x100019d0
cmp esi, dword [edi + 0x14]
jne 0x100018f0
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x84]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.10004200
mov eax, dword [edi + 0x1c]
mov esi, dword [eax]
cmp esi, eax
je 0x10001b05
nop dword [eax + eax]
cmp dword [esi + 0x24], 0x7fffffff
lea eax, [esi + 0x14]
mov byte [ebp + 0xc], 0
je 0x10001c9a
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x10001a2e
mov ecx, dword [eax]
push 1
lea edx, [ebp + 0xc]
push edx
mov edx, dword [eax + 0x10]
push edx
push ecx
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.100027e0
or ebx, 2
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0
push dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x84]
push eax
mov byte [ebp - 4], 7
call fcn.10004200
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x84]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.10004200
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 5
cmp ecx, 0xf
jbe 0x10001ab9
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001aaf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001c95
push ecx
push edx
call fcn.10008b42
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10001ae4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10001ae0
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x10001ae0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10001ad0
mov esi, eax
jmp 0x10001afc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10001afc
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10001af0
cmp esi, dword [edi + 0x1c]
jne 0x10001a10
mov eax, dword [edi + 0x28]
lea ecx, [ebp - 0x84]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.10004200
mov eax, dword [edi + 0x24]
mov esi, dword [eax]
cmp esi, eax
je 0x10001c25
nop dword [eax + eax]
cmp dword [esi + 0x24], 0x7fffffff
lea eax, [esi + 0x14]
mov byte [ebp + 0xc], 0
je 0x10001c9a
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x10001b4e
mov ecx, dword [eax]
push 1
lea edx, [ebp + 0xc]
push edx
mov edx, dword [eax + 0x10]
push edx
push ecx
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.100027e0
or ebx, 1
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0
push dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x84]
push eax
mov byte [ebp - 4], 8
call fcn.10004200
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x84]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.10004200
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 5
cmp ecx, 0xf
jbe 0x10001bd9
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001bcf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001c95
push ecx
push edx
call fcn.10008b42
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10001c04
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10001c00
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x10001c00
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10001bf0
mov esi, eax
jmp 0x10001c1c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10001c1c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10001c10
cmp esi, dword [edi + 0x24]
jne 0x10001b30
lea ecx, [ebp - 0xd0]
call fcn.100266f0
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.10026700
push esi
push eax
push 0x409
push 0x457
push 0xa
call fcn.10004480
call fcn.100045e0
lea ecx, [ebp - 0x94]
call fcn.10003110
lea ecx, [ebp - 0xd0]
call fcn.100266a0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
call fcn.1000d3cf
call fcn.10003ab0
int3