Function at 0x102e1c2
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x55c
mov eax, dword [0x1048628]
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
push 5
mov dword [ebp - 4], eax
mov dword [ebp - 0x530], ecx
mov dword [ebp - 0x520], edi
mov dword [ebp - 0x528], ebx
mov dword [ebp - 0x52c], ebx
call fcn.01028147
cmp eax, ebx
mov dword [ebp - 0x524], eax
jne 0x102e21a
push 0x5a
push 4
call fcn.010259af
test eax, eax
je 0x102e21a
xor eax, eax
inc eax
jmp 0x102e21c
xor eax, eax
cmp edi, ebx
mov dword [ebp - 0x540], ebx
jne 0x102e230
mov eax, 0x80004003
jmp 0x102e9ca
cmp dword [ebp - 0x524], ebx
jne 0x102e244
cmp eax, ebx
jne 0x102e244
xor eax, eax
inc eax
jmp 0x102e9ca
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push edi
push 0x1007a60
push 5
call fcn.0102ae85
add esp, 0x10
push ebx
push edi
call fcn.0102639e
cmp eax, ebx
jge 0x102e335
push eax
push dword [ebp - 0x520]
push 0x1007a28
push 2
call fcn.0102ae85
add esp, 0x10
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0101af95
test eax, eax
je 0x102e335
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x51c], eax
je 0x102e335
add dword [ebp - 0x51c], 2
cmp dword [ebp - 0x524], ebx
mov edi, 0x1007a10
jne 0x102e2d1
mov edi, 0x10079f8
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
inc eax
push eax
push edi
push dword [ebp - 0x51c]
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.010257cb
test eax, eax
je 0x102e335
push 0xffff
push 1
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.01027a35
push ebx
push dword [ebp - 0x520]
call fcn.0102639e
test eax, eax
jge 0x102e327
push 0x10079c4
push 2
jmp 0x102e32e
push 0x10079a0
push 5
call fcn.0102ae85
pop ecx
pop ecx
cmp dword [ebp - 0x524], ebx
mov dword [ebp - 0x51c], 1
je 0x102e6a3
lea ecx, [ebp - 0x558]
call fcn.0103d998
lea ecx, [ebp - 0x558]
call fcn.0103d9c4
test eax, eax
jne 0x102e3b6
call esi
cmp eax, ebx
jne 0x102e370
push 0x57
pop eax
cmp eax, ebx
jg 0x102e37d
call esi
cmp eax, ebx
jne 0x102e390
push 0x57
pop eax
jmp 0x102e390
call esi
cmp eax, ebx
jne 0x102e386
push 0x57
pop eax
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x102e39b
mov esi, 0x80004005
push esi
push dword [ebp - 0x520]
push 0x1007948
push 2
call fcn.0102ae85
add esp, 0x10
jmp 0x102e481
push ebx
push 0x1006aa4
lea eax, [ebp - 0x528]
push eax
call dword [ebp - 0x558]
test eax, eax
jne 0x102e40c
call esi
cmp eax, ebx
jne 0x102e3d8
push 0x57
pop eax
cmp eax, ebx
jg 0x102e3e5
call esi
cmp eax, ebx
jne 0x102e3f8
push 0x57
pop eax
jmp 0x102e3f8
call esi
cmp eax, ebx
jne 0x102e3ee
push 0x57
pop eax
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x102e693
mov esi, 0x8007000d
jmp 0x102e693
mov ecx, dword [ebp - 0x530]
mov edi, 0x208
push edi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x51c], ebx
call fcn.0102bcbe
test eax, eax
jne 0x102e435
mov esi, 0x8000ffff
jmp 0x102e481
lea eax, [ebp - 0x20c]
push eax
call fcn.0102534f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, 0x103
sub ecx, eax
push ecx
push dword [ebp - 0x520]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.010257cb
test eax, eax
jne 0x102e491
mov esi, 0x80070002
lea ecx, [ebp - 0x558]
call fcn.0103d9b0
jmp 0x102e9c7
push 0x10078f0
push 5
call fcn.0102ae4b
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
je 0x102e62a
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0102c553
test eax, eax
jl 0x102e61b
lea eax, [ebp - 0x20c]
push eax
call fcn.0101ae24
test ah, 0x40
je 0x102e525
lea ecx, [ebp - 0x538]
call fcn.01025252
lea ecx, [ebp - 0x538]
call fcn.01025275
test eax, eax
je 0x102e51a
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x538]
test eax, eax
jne 0x102e51a
call esi
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1005ae4
push 2
call fcn.0102ae85
add esp, 0x10
lea ecx, [ebp - 0x538]
call fcn.01025261
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x528]
call dword [ebp - 0x54c]
mov dword [ebp - 0x52c], eax
call esi
push eax
push dword [ebp - 0x520]
push 0x10078c0
push 5
call fcn.0102ae85
add esp, 0x10
cmp dword [0x104a464], ebx
jne 0x102e61b
push 0x103
lea eax, [ebp - 0x518]
push eax
mov dword [0x104a464], 1
call fcn.0101da4d
test eax, eax
je 0x102e61b
push 0x1007848
push 0x104
lea eax, [ebp - 0x518]
push eax
mov dword [ebp - 0x53c], ebx
mov dword [ebp - 0x534], ebx
mov dword [ebp - 0x524], ebx
mov dword [ebp - 0x544], ebx
call fcn.0100f5a7
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.01025e0f
test eax, eax
jne 0x102e61b
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01025e0f
test eax, eax
jne 0x102e61b
mov eax, dword [ebp - 0x524]
cmp eax, dword [ebp - 0x53c]
jne 0x102e60d
mov eax, dword [ebp - 0x544]
cmp eax, dword [ebp - 0x534]
je 0x102e61b
xor eax, eax
inc eax
mov dword [0x104a464], eax
mov dword [ebp - 0x540], eax
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 0x52c], ebx
pop ecx
jne 0x102e66d
call esi
test eax, eax
jg 0x102e634
call esi
jmp 0x102e640
call esi
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x51c], eax
jl 0x102e655
mov eax, 0x8007000d
mov dword [ebp - 0x51c], eax
push eax
push dword [ebp - 0x520]
push 0x1007814
push 2
call fcn.0102ae85
add esp, 0x10
jmp 0x102e680
push ebx
push dword [ebp - 0x52c]
push dword [ebp - 0x528]
call dword [ebp - 0x550]
push ebx
push dword [ebp - 0x528]
call dword [ebp - 0x554]
mov esi, dword [ebp - 0x51c]
lea ecx, [ebp - 0x558]
call fcn.0103d9b0
jmp 0x102e996
lea ecx, [ebp - 0x55c]
call fcn.0102a2fa
lea ecx, [ebp - 0x55c]
call fcn.0102a329
test eax, eax
jne 0x102e707
call esi
push eax
push dword [ebp - 0x520]
push 0x10077c0
push 2
call fcn.0102ae85
add esp, 0x10
call esi
cmp eax, ebx
jne 0x102e6e0
push 0x57
pop eax
cmp eax, ebx
jg 0x102e6ed
call esi
cmp eax, ebx
jne 0x102e700
push 0x57
pop eax
jmp 0x102e700
call esi
cmp eax, ebx
jne 0x102e6f6
push 0x57
pop eax
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x102e7a3
mov ecx, dword [ebp - 0x530]
mov edi, 0x208
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102bcbe
test eax, eax
jne 0x102e72a
mov esi, 0x8000ffff
jmp 0x102e7a3
lea eax, [ebp - 0x20c]
push eax
call fcn.0102534f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, 0x103
sub ecx, eax
push ecx
push dword [ebp - 0x520]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0x10
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x310]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x102e78e
mov dword [ebp - 0x51c], 0x80004005
lea eax, [ebp - 0x310]
push eax
call fcn.0102579e
test eax, eax
jne 0x102e7b3
mov esi, 0x80070002
lea ecx, [ebp - 0x55c]
call fcn.0102a315
jmp 0x102e9c7
push 0x10078f0
push 5
call fcn.0102ae4b
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x524], eax
je 0x102e8db
push edi
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push ebx
push ebx
mov dword [ebp - 0x51c], 0x80004005
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x102e8cf
push 1
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x524]
call fcn.0102c553
test eax, eax
jl 0x102e8cf
push dword [ebp - 0x524]
push 0x1007790
push 5
call fcn.0102ae85
push 0x1007784
push dword [ebp - 0x524]
mov dword [ebp - 0x51c], ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0x14
test eax, eax
je 0x102e8cf
lea eax, [ebp - 0x310]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x102e8c5
mov byte [edi], bl
inc edi
push edi
lea eax, [ebp - 0x310]
push eax
push 0x1007778
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.01017ed4
add esp, 0x14
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x310]
push eax
mov byte [edi - 1], 0x5c
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x102e8cf
push 0x103
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
jmp 0x102e8cf
mov dword [ebp - 0x51c], 0x80004005
push dword [ebp - 0x524]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x51c], ebx
jne 0x102e985
push dword [ebp - 0x520]
push 0x1007758
push 5
call fcn.0102ae85
add esp, 0xc
push 0x100774c
lea eax, [ebp - 0x310]
push eax
call dword [ebp - 0x54c]
mov edi, eax
call esi
push eax
push dword [ebp - 0x520]
push 0x10078c0
push 5
call fcn.0102ae85
add esp, 0x10
cmp edi, ebx
je 0x102e985
push ebx
lea eax, [ebp - 0x310]
push eax
call dword [ebp - 0x54c]
mov edi, eax
call esi
push eax
push dword [ebp - 0x520]
push 0x1007710
push 5
call fcn.0102ae85
add esp, 0x10
cmp edi, ebx
je 0x102e985
jle 0x102e966
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x51c], edi
call esi
push eax
push edi
push dword [ebp - 0x520]
push 0x10076d4
push 2
call fcn.0102ae85
add esp, 0x14
lea ecx, [ebp - 0x55c]
call fcn.0102a315
mov esi, dword [ebp - 0x51c]
push esi
push dword [ebp - 0x520]
push 0x100769c
push 5
call fcn.0102ae85
add esp, 0x10
cmp dword [ebp - 0x540], ebx
je 0x102e9c7
push dword [ebp - 0x520]
mov ecx, dword [ebp - 0x530]
call fcn.0102e1c2
mov esi, eax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01018732
leave
ret 4