Function at 0x1012db40
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x11c], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x114], esi
mov eax, dword [esi + 0x26c]
mov dword [ebp - 0x118], eax
test eax, eax
je 0x1012e2dc
add eax, 0x80
je 0x1012e2dc
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x110], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x13c], ebx
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x130], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push dword [ebp - 0x11c]
add eax, 0x10
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x128], eax
call fcn.101221f0
mov ecx, dword [esi + 0x26c]
lea eax, [edi + 0x74]
mov dword [ebp - 0x124], eax
lea edx, [ebp - 0x108]
push edx
mov dword [ebp - 0x120], 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x124]
push dword [eax]
push dword [edi + 0x40]
call fcn.1002a680
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x108]
add edx, 0xfffffff0
mov dword [ecx + 0x80], eax
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1012dc4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x114]
xor esi, esi
mov edx, dword [eax + 0x260]
mov ecx, dword [eax + 0x264]
mov eax, 0x2aaaaaab
sub ecx, edx
mov dword [ebp - 0x108], edx
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x1012e137
mov eax, dword [ebp - 0x108]
mov edx, dword [edi]
add eax, 8
jmp 0x1012dc90
cmp dword [eax], edx
je 0x1012dca1
inc esi
add eax, 0x18
cmp esi, ecx
jb 0x1012dc90
jmp 0x1012e137
mov ecx, dword [ebp - 0x108]
lea eax, [esi + esi*2]
lea esi, [ecx + eax*8]
push esi
lea ecx, [ebp - 0x13c]
call fcn.10002790
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x138], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x134], eax
lea eax, [esi + 0xc]
push eax
call fcn.10002790
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x12c], eax
lea eax, [esi + 0x14]
push eax
call fcn.1012c810
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x108]
push 0x10202940
mov dword [ebp - 0x108], eax
call fcn.10023e80
test al, al
jne 0x1012dd2d
push 0
push 0x10202940
lea ecx, [ebp - 0x108]
call fcn.10003740
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x10c]
push 0x27f6
push eax
call fcn.100053d0
add esp, 0xc
lea ecx, [ebp - 0x110]
push eax
call fcn.10002790
mov edx, dword [ebp - 0x10c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1012dd74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x108]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1012dd91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x124]
mov ebx, dword [ebp - 0x13c]
test eax, eax
je 0x1012ddcf
cmp dword [eax], 2
je 0x1012ddcf
push ecx
lea eax, [ebx - 0x10]
mov esi, esp
push eax
call fcn.10002a60
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov esi, dword [ebp - 0x114]
mov ecx, esi
call fcn.10131190
mov eax, dword [ebp - 0x124]
jmp 0x1012ddd5
mov esi, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x138]
sub ecx, 1
je 0x1012e014
sub ecx, 1
je 0x1012deda
sub ecx, 1
jne 0x1012e137
test eax, eax
je 0x1012e117
cmp dword [eax], 2
je 0x1012e117
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1012de73
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.10002a60
add eax, 0x10
lea ecx, [ebp - 0x110]
add esp, 4
mov dword [ebp - 0x10c], eax
push dword [eax - 0xc]
push eax
call fcn.10002970
lea ecx, [ebp - 0x10c]
call fcn.10007e10
mov eax, dword [edi + 0x28]
push dword [ebp - 0x11c]
push ecx
mov eax, dword [eax]
mov esi, esp
sub eax, 0x10
push eax
call fcn.10002a60
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov esi, dword [ebp - 0x114]
mov ecx, esi
call fcn.1012d090
push 0x10204674
push 2
push dword [edi + 0x40]
lea ecx, [ebp - 0x100]
push dword [edi]
push dword [edi + 0x14]
push dword [edi + 8]
call fcn.10126970
mov ecx, 0x1025b450
call fcn.10009be0
push eax
push 0
push ebx
lea ecx, [ebp - 0x100]
call fcn.101235f0
lea ecx, [ebp - 0x100]
call fcn.10124190
sub esp, 0x18
lea eax, [ebp - 0x13c]
mov ecx, esp
push eax
call fcn.1012c530
mov ecx, esi
call fcn.1012cc90
push ebx
call fcn.100d9640
add esp, 4
jmp 0x1012e117
test eax, eax
je 0x1012e00a
cmp dword [eax], 2
je 0x1012e00a
cmp dword [esi + 0x248], 0
je 0x1012dfdd
push 0x10202940
lea ecx, [ebp - 0x108]
call fcn.10002490
push eax
lea eax, [ebp - 0x10c]
push 0x27f6
push eax
call fcn.100053d0
add esp, 0xc
lea ecx, [ebp - 0x110]
push eax
call fcn.10002790
lea ecx, [ebp - 0x10c]
call fcn.10007e10
lea ecx, [ebp - 0x108]
call fcn.10007e10
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1012df8e
push ecx
lea ecx, [ebp - 0x10c]
call fcn.1001b810
lea ecx, [ebp - 0x110]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10002970
lea ecx, [ebp - 0x10c]
call fcn.10007e10
push dword [ebp - 0x11c]
push ecx
mov ecx, esp
push dword [edi + 0x28]
call fcn.1001b810
mov ecx, esi
call fcn.1012d090
push 0x10204674
push 2
push dword [edi + 0x40]
lea ecx, [ebp - 0x100]
push dword [edi]
push dword [ebp - 0x110]
push dword [esi]
call fcn.10126970
mov ecx, 0x1025b450
call fcn.10009be0
push eax
push 0
push ebx
lea ecx, [ebp - 0x100]
call fcn.101235f0
lea ecx, [ebp - 0x100]
call fcn.10124190
mov dword [esi + 0x248], 0
jmp 0x1012dfe8
lea ecx, [ebp - 0x100]
call fcn.10123e70
push edi
sub esp, 0x18
lea eax, [ebp - 0x13c]
mov ecx, esp
push eax
call fcn.1012c530
mov ecx, esi
call fcn.1012d3c0
push ebx
call fcn.100d9640
add esp, 4
push 0x102104d0
jmp 0x1012e11c
test eax, eax
je 0x1012e117
cmp dword [eax], 2
je 0x1012e117
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1012e03b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x28
call fcn.10003680
add esp, 4
push 0
push dword [ebp - 0x130]
push ebx
test eax, eax
je 0x1012e056
call eax
jmp 0x1012e05c
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test esi, esi
je 0x1012e067
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1012e0d5
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.10002a60
add eax, 0x10
lea ecx, [ebp - 0x110]
add esp, 4
mov dword [ebp - 0x10c], eax
push dword [eax - 0xc]
push eax
call fcn.10002970
lea ecx, [ebp - 0x10c]
call fcn.10007e10
mov eax, dword [edi + 0x28]
push dword [ebp - 0x11c]
push ecx
mov eax, dword [eax]
mov esi, esp
sub eax, 0x10
push eax
call fcn.10002a60
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov esi, dword [ebp - 0x114]
mov ecx, esi
call fcn.1012d090
jmp 0x1012e0db
mov esi, dword [ebp - 0x114]
push 0x10204674
push 2
push dword [edi + 0x40]
lea ecx, [ebp - 0x100]
push dword [edi]
push dword [ebp - 0x110]
push dword [esi]
call fcn.10126970
push 0
push 0
mov ecx, 0x1025b450
call fcn.10009be0
push eax
push 1
push ebx
lea ecx, [ebp - 0x100]
call fcn.10123f40
push 0x10204674
mov eax, dword [ebp - 0x118]
push 0
push ebx
push dword [eax + 0x80]
call fcn.10026170
mov ecx, eax
call fcn.1002b1e0
mov esi, dword [ebp - 0x120]
test esi, esi
je 0x1012e23e
call fcn.10026170
mov edi, eax
lea ecx, [ebp - 0x101]
mov dword [ebp - 0x118], edi
call fcn.10129b80
cmp byte [edi + 0x210], 0
je 0x1012e233
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], esi
push eax
lea eax, [ebp - 0x11c]
mov ecx, edi
push eax
call fcn.1002aeb0
mov esi, dword [eax]
cmp esi, dword [edi]
je 0x1012e233
mov ecx, dword [ebp - 0x118]
lea edi, [esi + 0x14]
push edi
push dword [esi + 0x10]
call fcn.1002b7c0
mov ecx, edi
call fcn.1002a820
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1012e208
mov ecx, dword [edi + 0x28]
cmp ecx, 8
jb 0x1012e1e9
mov eax, dword [edi + 0x14]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1012e1df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012e2f1
mov eax, edx
push ecx
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
xor eax, eax
mov dword [edi + 0x24], 0
push 0x34
mov dword [edi + 0x28], 7
push edi
mov word [edi + 0x14], ax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov ecx, dword [ebp - 0x118]
push esi
call fcn.100151b0
mov edi, eax
lea ecx, [edi + 0x14]
call fcn.1002a820
push 0x20
push dword [edi + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push 0x1c
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
lea ecx, [ebp - 0x101]
call fcn.10129ba0
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x100]
mov dword [eax], 3
call fcn.10122860
mov edx, dword [ebp - 0x128]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1012e275
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x130]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1012e292
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x1012e2a9
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x110]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1012e2c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
call fcn.101e6c40
int3