Function at 0x416dd0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x677552
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x71906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1d0]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1cc], eax
call fcn.004deed0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
call fcn.004cdfb9
add esp, 4
push 0x3a8
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
call fcn.00408930
lea eax, [ebp - 0x40]
push eax
call fcn.004cce1b
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push 0x10
push eax
call fcn.004cdf22
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.004cc37c
add esp, 0x30
test eax, eax
jne 0x416ebb
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x700c48
cmp eax, 1
jb 0x416ea4
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.00506b80
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x416ebb
mov byte [ebp - 0x1c8], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1c8]
push 1
call fcn.00407ad0
lea eax, [ebp - 0x40]
cmp ebx, eax
je 0x416ed5
cmp dword [ebp - 0x2c], 0x10
mov ecx, ebx
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00406e90
push ebx
call fcn.004cc37c
add esp, 4
test eax, eax
jne 0x416f36
mov edx, dword [ebx + 0x14]
mov eax, edx
mov ecx, dword [ebx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x416f19
lea eax, [ecx + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x416f00
mov eax, dword [ebx]
push 1
lea esi, [eax + ecx]
push 0x700c48
push esi
call fcn.00506b80
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x416f36
push 1
push 0x700c48
mov byte [ebp - 0x1c8], 0
mov ecx, ebx
push dword [ebp - 0x1c8]
push 1
call fcn.00407ad0
cmp dword [ebx + 0x60], 0x10
lea esi, [ebx + 0x4c]
mov eax, esi
jb 0x416f43
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov edx, eax
mov dword [ebp - 0x48], 0
mov ecx, edx
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416f63
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00406e90
mov byte [ebp - 4], 4
cmp dword [ebp - 0x48], 0
ja 0x416f83
lea esi, [ebx + 0x64]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x416f8d
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call edi
push eax
mov ecx, ebx
call fcn.004067c0
cmp dword [esi + 0x14], 0x10
jb 0x416fa6
mov esi, dword [esi]
push esi
call edi
push eax
lea ecx, [ebp - 0x28]
call fcn.004067c0
call fcn.004d1e7e
test al, al
je 0x41705a
mov eax, dword [0x729d00]
test eax, eax
je 0x41705a
cmp dword [eax + 4], 5
jl 0x41705a
cmp dword [ebx + 0x14], 0x10
mov esi, ebx
jb 0x416fe0
mov esi, dword [ebx]
sub esp, 0xc
lea ecx, [ebp - 0x1c0]
push 0x28b
push str.CDoWebInstLogic::OnGetTargetSoftLogic
push 5
call fcn.0040deb0
mov dword [ebp - 0x1c8], eax
lea edi, [eax + 0x30]
mov byte [ebp - 4], 5
mov edx, str.target_file:
mov ecx, edi
call fcn.0040dd20
mov edx, esi
mov ecx, edi
call fcn.0040dd20
mov edx, 0x700c3c
mov ecx, edi
call fcn.0040dd20
cmp dword [ebx + 0x78], 0x10
lea edx, [ebx + 0x64]
jb 0x417033
mov edx, dword [edx]
mov ecx, edi
call fcn.0040dd20
push dword [ebp - 0x1c8]
mov ecx, dword [0x729d00]
call fcn.0040faa0
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 4
call fcn.0040e2b0
cmp dword [ebx + 0xd4], 0
je 0x417076
cmp dword [ebx + 0xd8], 0x10
lea eax, [ebx + 0xc4]
jb 0x417078
mov eax, dword [eax]
jmp 0x417078
xor eax, eax
push eax
push 0
push dword [ebp - 0x1cc]
push 0x413f90
push 0x3a8
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.004069f0
lea eax, [ebp - 0xa0]
push eax
call fcn.004cca9a
add esp, 0x20
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x4170b1
mov eax, dword [eax]
push eax
push 0x3a8
sub esp, 0x18
lea eax, [ebx + 0x64]
mov ecx, esp
push eax
call fcn.004069f0
lea eax, [ebp - 0x88]
push eax
call fcn.004cca9a
add esp, 0x20
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4170e0
mov eax, dword [eax]
push eax
call fcn.004df580
mov byte [ebp - 4], 6
add esp, 0x18
mov edx, dword [ebp - 0x74]
mov byte [ebp - 0x1c1], al
cmp edx, 8
jb 0x417130
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417126
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41744c
push edx
push ecx
call fcn.0042d6b0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 8
jb 0x41718b
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417181
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417451
push edx
push ecx
call fcn.0042d6b0
add esp, 8
cmp byte [ebp - 0x1c1], 0
je 0x417298
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ecx, ebx
cmovae eax, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 0x10
jb 0x4171ad
mov ecx, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push eax
push ecx
call edi
mov esi, eax
push 0x1f4
mov dword [ebp - 0x1c8], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x4171f1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ecx, ebx
cmovae eax, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 0x10
jb 0x4171e5
mov ecx, dword [ebx]
push 0
push eax
push ecx
call edi
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x41720b
cmp dword [ebp - 0x14], 0x10
mov ecx, ebx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00406e90
call fcn.004d1e7e
test al, al
je 0x417313
mov eax, dword [0x729d00]
test eax, eax
je 0x417313
cmp dword [eax + 4], 5
jl 0x417313
cmp dword [ebx + 0x14], 0x10
jb 0x417237
mov ebx, dword [ebx]
sub esp, 0xc
lea ecx, [ebp - 0x1c0]
push 0x29b
push str.CDoWebInstLogic::OnGetTargetSoftLogic
push 5
call fcn.0040deb0
mov edi, eax
mov edx, str.target_file:
mov byte [ebp - 4], 8
lea ecx, [edi + 0x30]
call fcn.0040dd20
mov edx, ebx
lea ecx, [edi + 0x30]
call fcn.0040dd20
mov edx, str.__ok
lea ecx, [edi + 0x30]
call fcn.0040dd20
mov edx, str.copyfile_:
lea ecx, [edi + 0x30]
call fcn.0040dd20
push dword [ebp - 0x1c8]
lea ecx, [edi + 0x30]
call fcn.004117b0
jmp 0x4172fc
call fcn.004d1e7e
test al, al
je 0x417313
mov eax, dword [0x729d00]
test eax, eax
je 0x417313
cmp dword [eax + 4], 5
jl 0x417313
cmp dword [ebx + 0x14], 0x10
jb 0x4172b8
mov ebx, dword [ebx]
sub esp, 0xc
lea ecx, [ebp - 0x1c0]
push 0x29f
push str.CDoWebInstLogic::OnGetTargetSoftLogic
push 5
call fcn.0040deb0
mov edi, eax
mov edx, str.target_file:
mov byte [ebp - 4], 9
lea ecx, [edi + 0x30]
call fcn.0040dd20
mov edx, ebx
lea ecx, [edi + 0x30]
call fcn.0040dd20
mov edx, str.__fail
lea ecx, [edi + 0x30]
call fcn.0040dd20
mov ecx, dword [0x729d00]
push edi
call fcn.0040faa0
lea ecx, [ebp - 0x1c0]
call fcn.0040e2b0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x417347
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41733d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417456
push edx
push ecx
call fcn.0042d6b0
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x41737b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417371
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41745b
push edx
push ecx
call fcn.0042d6b0
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x4173c1
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4173b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417460
push edx
push ecx
call fcn.0042d6b0
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 8
jb 0x417409
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4173ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417465
push edx
push ecx
call fcn.0042d6b0
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.004df010
mov al, byte [ebp - 0x1c1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d065
mov esp, ebp
pop ebp
ret 8
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
int3