Function at 0x4012a0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x425512
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x42eb24]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42eb24]
xor eax, esp
push eax
lea eax, [esp + 0x2b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c4]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov edi, 0xf
push ebp
lea ecx, [esp + 0x70]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.00404480
push ebx
push 0x42ff98
or eax, 0xffffffff
lea esi, [esp + 0x6c]
mov dword [esp + 0x2c4], ebx
call fcn.004032b0
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
jae 0x401334
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
push ebx
push 0x42ffb4
or eax, 0xffffffff
lea esi, [esp + 0x6c]
call fcn.004032b0
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.00404480
push ebx
push 0x42ff7c
or eax, 0xffffffff
lea esi, [esp + 0x50]
mov byte [esp + 0x2c4], 1
call fcn.004032b0
push ebx
push 0x42ffb4
or eax, 0xffffffff
call fcn.004032b0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov eax, esi
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 2
call fcn.00401dd0
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x34], edi
jne 0x40142a
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4013dc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00403d50
mov eax, dword [esp + 0x20]
push eax
call fcn.004059f3
add esp, 0xc
mov esi, 0x10
cmp dword [esp + 0x60], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jb 0x401400
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004059f3
add esp, 4
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x401423
mov edx, dword [esp + 0x68]
push edx
call fcn.004059f3
add esp, 4
xor al, al
jmp 0x401900
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push 0xffffffffffffffff
mov byte [esp + 0x2c0], 3
push ebx
push ebp
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
call fcn.00404480
push ebx
push 0x42ff98
or eax, 0xffffffff
lea esi, [esp + 0x88]
mov byte [esp + 0x2c4], 4
call fcn.004032b0
push ebx
push 0x42ffb4
or eax, 0xffffffff
call fcn.004032b0
mov eax, esi
push eax
lea ecx, [esp + 0x3c]
call fcn.00401dd0
push 0x103
lea ecx, [esp + 0xa1]
push ebx
push ecx
mov byte [esp + 0xa8], bl
call fcn.00412ee0
add esp, 0xc
push 0x103
lea edx, [esp + 0x1a9]
push ebx
push edx
mov byte [esp + 0x1b0], bl
call fcn.00412ee0
add esp, 0xc
xor ebp, ebp
cmp edi, ebx
mov dword [esp + 0x2c], ebx
jle 0x401755
xor edi, edi
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x40150d
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x401516
call fcn.004115fc
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x38]
lea eax, [esi + edi]
push ecx
push eax
call fcn.00402bf0
test al, al
je 0x40173b
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x401551
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x40155a
call fcn.004115fc
mov esi, dword [esp + 0x18]
cmp dword [esi + edi + 0x38], 0x10
jb 0x401567
mov esi, dword [esi + edi + 0x24]
jmp 0x40156b
lea esi, [esi + edi + 0x24]
mov ecx, dword [esp + 0x24]
push esi
call fcn.00404250
push eax
lea edx, [esp + 0xa4]
push str._s_s
push edx
mov eax, 0x104
call fcn.004039e0
add esp, 0x10
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
push 0x429537
lea ecx, [esp + 0x2c]
call fcn.00404a80
mov byte [esp + 0x2bc], 5
mov esi, dword [esp + 0x18]
cmp esi, ebx
lea ecx, [esp + 0x28]
push ecx
je 0x4015de
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4015e7
call fcn.004115fc
mov esi, dword [esp + 0x1c]
cmp dword [esi + edi + 0x18], 0x10
jb 0x4015f4
mov esi, dword [esi + edi + 4]
jmp 0x4015f8
lea esi, [esi + edi + 4]
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push esi
call fcn.00404a80
call fcn.00402060
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x40162f
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x401638
call fcn.004115fc
mov esi, dword [esp + 0x18]
cmp dword [esi + edi + 0x38], 0x10
jb 0x401645
mov esi, dword [esi + edi + 0x24]
jmp 0x401649
lea esi, [esi + edi + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
push esi
call fcn.00404250
push eax
lea eax, [esp + 0xa8]
push str._s_s_s
push eax
mov eax, 0x104
call fcn.004039e0
mov esi, dword [esp + 0x2c]
add esp, 0x14
cmp esi, ebx
je 0x401698
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4016a1
call fcn.004115fc
mov esi, dword [esp + 0x18]
mov eax, 0x10
cmp dword [esi + edi + 0x38], eax
jb 0x4016b2
mov esi, dword [esi + edi + 0x24]
jmp 0x4016b6
lea esi, [esi + edi + 0x24]
cmp dword [0x42ff94], eax
mov eax, dword [0x42ff80]
jae 0x4016c8
mov eax, 0x42ff80
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push esi
push eax
call fcn.00404250
push eax
lea edx, [esp + 0x1b4]
push str._s_s_s_s
push edx
mov eax, 0x104
call fcn.004039e0
add esp, 0x18
push ebx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401713
add dword [esp + 0x2c], 1
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40173b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
add edi, 0x3c
cmp ebp, dword [esp + 0x34]
jl 0x4014e8
cmp dword [esp + 0x2c], ebx
jne 0x401834
mov edx, dword [0x42ffb8]
mov ebp, 0x10
cmp dword [0x42ffcc], ebp
jae 0x40176d
mov edx, 0x42ffb8
cmp dword [0x42ffb0], ebp
mov ecx, dword [0x42ff9c]
jae 0x401780
mov ecx, 0x42ff9c
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x18], ebp
lea esi, [edi + 4]
jb 0x401790
mov eax, dword [esi]
jmp 0x401792
mov eax, esi
push edx
push ecx
push eax
lea ecx, [esp + 0xa8]
push str._s_s_s
push ecx
mov eax, 0x104
call fcn.004039e0
mov edx, dword [0x42ffb8]
add esp, 0x14
cmp dword [0x42ffcc], ebp
jae 0x4017c2
mov edx, 0x42ffb8
cmp dword [0x42ff94], ebp
mov ecx, dword [0x42ff80]
jae 0x4017d5
mov ecx, 0x42ff80
cmp dword [edi + 0x18], ebp
jb 0x4017de
mov eax, dword [esi]
jmp 0x4017e0
mov eax, esi
push edx
push ecx
push eax
lea edx, [esp + 0x1b0]
push str._s_s_s
push edx
mov eax, 0x104
call fcn.004039e0
add esp, 0x14
push ebx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401839
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x40], esp
push edx
lea ecx, [esp + 0x28]
call fcn.00402e60
mov ecx, edi
call fcn.004028b0
jmp 0x401839
mov ebp, 0x10
cmp dword [esp + 0x98], ebp
jb 0x401852
mov eax, dword [esp + 0x84]
push eax
call fcn.004059f3
add esp, 4
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov esi, 0xf
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
je 0x401890
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
push ecx
push edx
call fcn.00403d50
mov eax, dword [esp + 0x44]
push eax
call fcn.004059f3
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
je 0x4018c0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00403d50
mov eax, dword [esp + 0x20]
push eax
call fcn.004059f3
add esp, 0xc
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jb 0x4018df
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004059f3
add esp, 4
cmp dword [esp + 0x7c], ebp
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x4018fe
mov edx, dword [esp + 0x68]
push edx
call fcn.004059f3
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.0041125b
add esp, 0x2ac
ret 4