Function at 0x417370
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x677352
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.004ded10
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
call fcn.004ce7db
add esp, 4
push 0x3a8
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
call fcn.00408cb0
lea eax, [ebp - 0x40]
push eax
call fcn.004cd5aa
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push 0x10
push eax
call fcn.004ce744
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.004ccb3a
add esp, 0x30
test eax, eax
jne 0x41745b
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x700bbc
cmp eax, 1
jb 0x417444
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.00506a60
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x41745b
mov byte [ebp - 0x1c8], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1c8]
push 1
call fcn.00407e50
lea eax, [ebp - 0x40]
cmp ebx, eax
je 0x417475
cmp dword [ebp - 0x2c], 0x10
mov ecx, ebx
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00407210
push ebx
call fcn.004ccb3a
add esp, 4
test eax, eax
jne 0x4174d6
mov edx, dword [ebx + 0x14]
mov eax, edx
mov ecx, dword [ebx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x4174b9
lea eax, [ecx + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x4174a0
mov eax, dword [ebx]
push 1
lea esi, [eax + ecx]
push 0x700bbc
push esi
call fcn.00506a60
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x4174d6
push 1
push 0x700bbc
mov byte [ebp - 0x1c8], 0
mov ecx, ebx
push dword [ebp - 0x1c8]
push 1
call fcn.00407e50
cmp dword [ebx + 0x60], 0x10
lea esi, [ebx + 0x4c]
mov eax, esi
jb 0x4174e3
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 0x417503
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00407210
mov byte [ebp - 4], 4
cmp dword [ebp - 0x48], 0
ja 0x417523
lea esi, [ebx + 0x64]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41752d
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call edi
push eax
mov ecx, ebx
call fcn.00406b40
cmp dword [esi + 0x14], 0x10
jb 0x417546
mov esi, dword [esi]
push esi
call edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00406b40
call fcn.004d272f
test al, al
je 0x4175fa
mov eax, dword [0x729d00]
test eax, eax
je 0x4175fa
cmp dword [eax + 4], 5
jl 0x4175fa
cmp dword [ebx + 0x14], 0x10
mov esi, ebx
jb 0x417580
mov esi, dword [ebx]
sub esp, 0xc
lea ecx, [ebp - 0x1c0]
push 0x2af
push str.CDoWebInstLogic::OnGetTargetSoftLogic
push 5
call fcn.0040e1a0
mov dword [ebp - 0x1c8], eax
lea edi, [eax + 0x30]
mov byte [ebp - 4], 5
mov edx, str.target_file:
mov ecx, edi
call fcn.0040e010
mov edx, esi
mov ecx, edi
call fcn.0040e010
mov edx, 0x700ba0
mov ecx, edi
call fcn.0040e010
cmp dword [ebx + 0x78], 0x10
lea edx, [ebx + 0x64]
jb 0x4175d3
mov edx, dword [edx]
mov ecx, edi
call fcn.0040e010
push dword [ebp - 0x1c8]
mov ecx, dword [0x729d00]
call fcn.0040fd90
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 4
call fcn.0040e5a0
cmp dword [ebx + 0xd4], 0
je 0x417616
cmp dword [ebx + 0xd8], 0x10
lea eax, [ebx + 0xc4]
jb 0x417618
mov eax, dword [eax]
jmp 0x417618
xor eax, eax
push eax
push 0
push dword [ebp - 0x1cc]
push 0x414310
push 0x3a8
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.00406d70
lea eax, [ebp - 0xa0]
push eax
call fcn.004cd229
add esp, 0x20
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x417651
mov eax, dword [eax]
push eax
push 0x3a8
sub esp, 0x18
lea eax, [ebx + 0x64]
mov ecx, esp
push eax
call fcn.00406d70
lea eax, [ebp - 0x88]
push eax
call fcn.004cd229
add esp, 0x20
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x417680
mov eax, dword [eax]
push eax
call fcn.004df3c0
mov byte [ebp - 4], 6
add esp, 0x18
mov edx, dword [ebp - 0x74]
mov byte [ebp - 0x1c1], al
cmp edx, 8
jb 0x4176d0
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4176c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4179ec
push edx
push ecx
call fcn.0042dda0
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 0x41772b
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417721
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4179f1
push edx
push ecx
call fcn.0042dda0
add esp, 8
cmp byte [ebp - 0x1c1], 0
je 0x417838
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ecx, ebx
cmovae eax, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 0x10
jb 0x41774d
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 0x417791
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ecx, ebx
cmovae eax, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 0x10
jb 0x417785
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 0x4177ab
cmp dword [ebp - 0x14], 0x10
mov ecx, ebx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00407210
call fcn.004d272f
test al, al
je 0x4178b3
mov eax, dword [0x729d00]
test eax, eax
je 0x4178b3
cmp dword [eax + 4], 5
jl 0x4178b3
cmp dword [ebx + 0x14], 0x10
jb 0x4177d7
mov ebx, dword [ebx]
sub esp, 0xc
lea ecx, [ebp - 0x1c0]
push 0x2bf
push str.CDoWebInstLogic::OnGetTargetSoftLogic
push 5
call fcn.0040e1a0
mov edi, eax
mov edx, str.target_file:
mov byte [ebp - 4], 8
lea ecx, [edi + 0x30]
call fcn.0040e010
mov edx, ebx
lea ecx, [edi + 0x30]
call fcn.0040e010
mov edx, str.__ok
lea ecx, [edi + 0x30]
call fcn.0040e010
mov edx, str.copyfile_:
lea ecx, [edi + 0x30]
call fcn.0040e010
push dword [ebp - 0x1c8]
lea ecx, [edi + 0x30]
call fcn.00411aa0
jmp 0x41789c
call fcn.004d272f
test al, al
je 0x4178b3
mov eax, dword [0x729d00]
test eax, eax
je 0x4178b3
cmp dword [eax + 4], 5
jl 0x4178b3
cmp dword [ebx + 0x14], 0x10
jb 0x417858
mov ebx, dword [ebx]
sub esp, 0xc
lea ecx, [ebp - 0x1c0]
push 0x2c3
push str.CDoWebInstLogic::OnGetTargetSoftLogic
push 5
call fcn.0040e1a0
mov edi, eax
mov edx, str.target_file:
mov byte [ebp - 4], 9
lea ecx, [edi + 0x30]
call fcn.0040e010
mov edx, ebx
lea ecx, [edi + 0x30]
call fcn.0040e010
mov edx, str.__fail
lea ecx, [edi + 0x30]
call fcn.0040e010
mov ecx, dword [0x729d00]
push edi
call fcn.0040fd90
lea ecx, [ebp - 0x1c0]
call fcn.0040e5a0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x4178e7
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4178dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4179f6
push edx
push ecx
call fcn.0042dda0
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x41791b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417911
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4179fb
push edx
push ecx
call fcn.0042dda0
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 0x417961
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417957
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417a00
push edx
push ecx
call fcn.0042dda0
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 0x4179a9
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41799f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417a05
push edx
push ecx
call fcn.0042dda0
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.004dee50
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.0042d755
mov esp, ebp
pop ebp
ret 8
call fcn.0050cb1e
call fcn.0050cb1e
call fcn.0050cb1e
call fcn.0050cb1e
call fcn.0050cb1e
call fcn.0050cb1e
int3