Function at 0x451740
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffef8
mov eax, dword [0x760e38]
test eax, eax
jne 0x451779
mov edx, dword [0x6fb2cc]
test edx, edx
jne 0x45176d
mov ecx, dword [0x6fb2d0]
test ecx, ecx
je 0x451775
mov eax, dword [0x6fb2d4]
dec eax
je 0x451779
xor edx, edx
jmp 0x45177e
mov edx, 1
mov dword [ebp - 0x30], edx
mov ecx, dword [0x6fb15c]
test ecx, ecx
je 0x451792
xor eax, eax
jmp 0x451f1f
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4517a0
xor eax, eax
jmp 0x451f1f
mov edx, dword [ebp + 8]
mov cl, byte [edx + 0x120]
test cl, cl
je 0x451d18
mov eax, dword [0x6ebeb8]
test eax, eax
je 0x4517c7
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x12c]
test ecx, ecx
jne 0x4517ce
xor eax, eax
jmp 0x451f1f
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x451805
mov ecx, dword [ebp + 8]
push dword [ecx + 0x12c]
lea eax, [ebp - 0x1054]
push eax
call fcn.0066ce08
add esp, 8
lea edx, [ebp - 0x1054]
push edx
call fcn.004516d4
pop ecx
lea ecx, [ebp - 0x1054]
mov dword [ebp - 0x34], ecx
jmp 0x451833
push 0x2f
mov eax, dword [ebp + 8]
push dword [eax + 0x12c]
call fcn.0066cf51
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
test edx, edx
jne 0x451830
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x12c]
mov dword [ebp - 0x34], eax
jmp 0x451833
inc dword [ebp - 0x34]
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push 0x7607d9
lea edx, [ebp - 0x854]
push edx
call fcn.006712b0
add esp, 0x10
push 0
lea ecx, [ebp - 0x854]
push ecx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne 0x4519cb
mov eax, dword [0x75fab0]
inc eax
jne 0x4519ba
mov edx, dword [0x775994]
test edx, edx
jne 0x4519cb
lea ecx, [ebp - 0x10b4]
push ecx
lea eax, [ebp - 0x854]
push eax
call fcn.0066eb44
add esp, 8
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x854]
push ecx
call fcn.0046263c
add esp, 8
lea eax, [ebp - 0x854]
mov dword [ebp - 0x1090], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1088], edx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x1084], edx
mov ecx, dword [ebp - 0x1098]
mov dword [ebp - 0x1080], ecx
xor eax, eax
mov dword [ebp - 0x107c], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x134]
mov dword [ebp - 0x1078], ecx
push dword [ebp + 8]
call fcn.00404d7c
pop ecx
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x106c], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x124]
mov dword [ebp - 0x1068], edx
mov ecx, dword [0x6fb2c0]
test ecx, ecx
je 0x451924
mov dword [ebp - 0x1064], 1
jmp 0x45192c
xor eax, eax
mov dword [ebp - 0x1064], eax
mov edx, dword [0x81f7c8]
test edx, edx
je 0x45193b
call fcn.00404b84
lea ecx, [ebp - 0x1090]
push ecx
call fcn.004b3734
pop ecx
cmp eax, 5
ja case.0x45194d.0
jmp dword [eax*4 + 0x451954]
mov dword [0x75fab0], 1
jmp case.0x45194d.0
xor eax, eax
jmp 0x451f1f
xor edx, edx
mov dword [0x75fab0], edx
xor eax, eax
jmp 0x451f1f
xor edx, edx
mov dword [0x75fab0], edx
mov dword [0x6fb15c], 1
xor eax, eax
jmp 0x451f1f
mov edx, dword [0x81f7c8]
test edx, edx
je 0x4519cb
call fcn.00404b70
jmp 0x4519cb
mov ecx, dword [0x75fab0]
test ecx, ecx
jne 0x4519cb
xor eax, eax
jmp 0x451f1f
mov dword [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x30]
test edx, edx
jne 0x451a0f
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp + 8]
call fcn.004511e4
add esp, 8
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x28]
push edx
call sub.KERNEL32.DLL_LocalFileTimeToFileTime
mov ecx, dword [0x6ebee4]
test ecx, ecx
jne 0x451a0f
mov eax, dword [ebp + 8]
test byte [eax + 0x145], 1
je 0x451a0f
or dword [ebp - 0x18], 2
push 0xc
push 0
lea edx, [ebp - 0x1060]
push edx
call fcn.0066cc88
add esp, 0xc
mov dword [ebp - 0x1060], 0xc
xor ecx, ecx
mov dword [ebp - 0x105c], ecx
xor eax, eax
mov dword [ebp - 0x1058], eax
push 0
push dword [ebp - 0x18]
push 2
lea edx, [ebp - 0x1060]
push edx
push 0
push 0x40000000
lea ecx, [ebp - 0x854]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
jne 0x451ad9
lea edx, [ebp - 0x854]
push edx
push 0x59f4
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
mov ecx, dword [0x81f7c8]
test ecx, ecx
je 0x451ac3
lea eax, [ebp - 0x854]
push eax
push 0x59f4
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 4
push 0xa00988
call fcn.005731ac
add esp, 8
jmp 0x451ad2
push 2
push 0xa00988
call fcn.004f9088
add esp, 8
xor eax, eax
jmp 0x451f1f
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x110]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10c]
mov dword [ebp - 8], edx
lea ecx, [ebp - 0x854]
push ecx
call fcn.004413f0
pop ecx
mov eax, dword [0x6fb2c0]
test eax, eax
je 0x451b4c
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp + 8]
mov ax, word [ecx + 0x124]
and ax, 0xffff
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x124]
sar ecx, 0x10
push ecx
call sub.KERNEL32.DLL_DosDateTimeToFileTime
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x44]
push edx
call sub.KERNEL32.DLL_LocalFileTimeToFileTime
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0051f9b4
add esp, 8
jmp 0x451cd6
mov ecx, dword [0x6fb2e8]
test ecx, ecx
je 0x451b5e
mov eax, dword [0x6fb2dc]
dec eax
je 0x451b7b
mov edx, dword [0x6fb2e8]
test edx, edx
jne 0x451bb9
mov ecx, dword [0x6fb2e4]
test ecx, ecx
jne 0x451b7b
mov eax, dword [0x6fb2d8]
test eax, eax
je 0x451bb9
mov edx, dword [0x6fb2d8]
test edx, edx
je 0x451b98
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.005160e4
add esp, 8
jmp 0x451cd6
mov ecx, dword [0x6fb2e4]
test ecx, ecx
je 0x451cd6
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00516ca0
add esp, 8
jmp 0x451cd6
mov eax, dword [0x6fb2b8]
test eax, eax
je 0x451bcf
push dword [ebp + 8]
call fcn.00458ed4
pop ecx
test eax, eax
jne 0x451be6
mov edx, dword [0x6fb2bc]
test edx, edx
je 0x451c33
push dword [ebp + 8]
call fcn.00459168
pop ecx
test eax, eax
je 0x451c33
push dword [ebp + 8]
call fcn.00451294
pop ecx
mov dword [ebp - 0x48], eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call fcn.00498640
add esp, 8
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x451c1d
push dword [ebp - 0xc]
push dword [ebp - 0x48]
push dword [ebp - 0x14]
call fcn.0045b50c
add esp, 0xc
jmp 0x451cd6
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x14]
call fcn.0045b3cc
add esp, 0xc
jmp 0x451cd6
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x451c70
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x130]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x130]
push dword [ebp - 0x14]
call fcn.00497a78
add esp, 8
push dword [ebp - 0x14]
push dword [0x760db4]
push dword [ebp - 0x4c]
call fcn.004c733c
add esp, 0xc
jmp 0x451cd6
mov edx, dword [0x6fb1e0]
test edx, edx
je 0x451c97
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x174]
test eax, eax
je 0x451c97
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00504a0c
add esp, 8
jmp 0x451cd6
mov edx, dword [0x6fb1d8]
test edx, edx
je 0x451cc8
mov ecx, dword [0x6ebcc8]
test ecx, ecx
je 0x451cc8
mov eax, dword [ebp + 8]
mov dl, byte [eax + 0x159]
test dl, dl
je 0x451cc8
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0046209c
add esp, 8
jmp 0x451cd6
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0045afcc
add esp, 8
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x451cf1
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetFileTime
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [0x6fb15c]
test eax, eax
je 0x451f1a
lea edx, [ebp - 0x854]
push edx
call fcn.0045255c
pop ecx
jmp 0x451f1a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x134]
test eax, eax
jne 0x451d2c
xor eax, eax
jmp 0x451f1f
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x134]
mov dword [ebp - 4], ecx
push 0x5c
push dword [ebp - 4]
call fcn.0066cf51
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x451d54
inc dword [ebp - 4]
jmp 0x451d5b
xor eax, eax
jmp 0x451f1f
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x7607df
lea edx, [ebp - 0x854]
push edx
call fcn.006712b0
add esp, 0x10
lea ecx, [ebp - 0x854]
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x134]
call fcn.0066d004
add esp, 8
test eax, eax
jne 0x451d9b
mov eax, 1
jmp 0x451f1f
push 0
lea edx, [ebp - 0x854]
push edx
call fcn.0066ebe8
add esp, 8
test eax, eax
jne case.0x451e85.0
mov ecx, dword [0x75fab0]
inc ecx
jne 0x451eda
lea eax, [ebp - 0x1108]
push eax
lea edx, [ebp - 0x854]
push edx
call fcn.0066eb44
add esp, 8
lea ecx, [ebp - 0x54]
push ecx
lea eax, [ebp - 0x854]
push eax
call fcn.0046263c
add esp, 8
lea edx, [ebp - 0x854]
mov dword [ebp - 0x10e4], edx
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x10dc], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x10d8], ecx
mov eax, dword [ebp - 0x10ec]
mov dword [ebp - 0x10d4], eax
xor edx, edx
mov dword [ebp - 0x10d0], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x134]
mov dword [ebp - 0x10cc], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x118]
mov dword [ebp - 0x10c4], ecx
mov ecx, dword [edx + 0x11c]
mov dword [ebp - 0x10c0], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x124]
mov dword [ebp - 0x10bc], edx
mov ecx, dword [0x6fb2c0]
test ecx, ecx
je 0x451e6b
mov dword [ebp - 0x10b8], 1
jmp 0x451e73
xor eax, eax
mov dword [ebp - 0x10b8], eax
lea edx, [ebp - 0x10e4]
push edx
call fcn.004b3734
pop ecx
cmp eax, 5
ja case.0x451e85.0
jmp dword [eax*4 + 0x451e8c]
mov dword [0x75fab0], 1
jmp case.0x451e85.0
xor eax, eax
jmp 0x451f1f
xor edx, edx
mov dword [0x75fab0], edx
xor eax, eax
jmp 0x451f1f
xor edx, edx
mov dword [0x75fab0], edx
mov dword [0x6fb15c], 1
xor eax, eax
jmp 0x451f1f
mov edx, dword [0x75fab0]
test edx, edx
jne case.0x451e85.0
xor eax, eax
jmp 0x451f1f
push 1
lea edx, [ebp - 0x854]
push edx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x134]
call sub.KERNEL32.DLL_CopyFileA
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x11c]
mov eax, dword [eax + 0x118]
add dword [0x833f58], eax
adc dword [0x833f5c], edx
mov eax, 1
mov esp, ebp
pop ebp
ret