Function at 0x417a60
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x44f5d6
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x461cb4]
xor eax, esp
mov dword [esp + 0x578], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x461cb4]
xor eax, esp
push eax
lea eax, [esp + 0x594]
mov dword fs:[0], eax
push fcn.0041ee00
push fcn.0041ecf0
push 0x104
push 4
lea eax, [esp + 0x4c]
xor esi, esi
push eax
mov dword [esp + 0x5b0], esi
call fcn.00432ab0
mov byte [esp + 0x59c], 1
call fcn.004268c1
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x417ae1
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
push 0xa
push str._settings_
lea ecx, [esp + 0x5ac]
mov byte [esp + 0x5a4], 2
call fcn.00420330
call fcn.004268c1
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x417b26
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x59c], 3
call fcn.004268c1
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x417b58
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x59c], 4
call fcn.004268c1
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x417b8a
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push ecx
mov byte [esp + 0x5a0], 5
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x457b18
call fcn.0041ed40
push ecx
mov byte [esp + 0x5a4], 6
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x456764
call fcn.0041ed40
mov byte [esp + 0x5a4], 5
call fcn.0041af00
add esp, 8
lea ecx, [esp + 0x5a4]
push ecx
lea ecx, [esp + 0x38]
call fcn.0041f8c0
push 3
push 0x457b30
lea ecx, [esp + 0x3c]
call fcn.00420330
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x44c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x417e91
lea ebx, [esp + 0x3c]
cmp esi, 0x12
je 0x417e91
lea eax, [esp + 0x478]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x417c34
sub eax, edx
push eax
lea ecx, [esp + 0x47c]
push ecx
lea ecx, [esp + 0x38]
call fcn.0041ff70
push 0x457b34
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0041f320
add esp, 0xc
mov byte [esp + 0x59c], 7
mov ecx, dword [eax]
mov esi, dword [esp + 0x24]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x417cc7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x417cb9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x417cb9
push eax
call fcn.00420060
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x417cb0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x24], ebp
jmp 0x417cc7
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041ff70
mov byte [esp + 0x59c], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417cef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0041f260
add esp, 0xc
mov byte [esp + 0x59c], 8
mov ecx, dword [eax]
mov esi, dword [esp + 0x24]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x417d65
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x417d57
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x417d57
push eax
call fcn.00420060
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x417d4e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x24], ebp
jmp 0x417d65
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041ff70
mov byte [esp + 0x59c], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417d8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x30]
cmp dword [edi - 0xc], 0
jl 0x417e71
push str.core_user
push edi
call fcn.00433415
add esp, 8
test eax, eax
je 0x417db4
sub eax, edi
cmp eax, 0xffffffff
jne 0x417ddf
cmp dword [edi - 0xc], 0
jl 0x417e71
push str.core_char
push edi
call fcn.00433415
add esp, 8
test eax, eax
je 0x417e71
sub eax, edi
cmp eax, 0xffffffff
je 0x417e71
mov esi, dword [ebx]
lea eax, [edi - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x417e2f
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x417e23
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x417e23
push eax
call fcn.00420060
add esp, 4
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebp], edx
dec edx
test edx, edx
jg 0x417e1c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [ebx], edi
jmp 0x417e2f
mov eax, dword [edi - 0xc]
push eax
push edi
mov ecx, ebx
call fcn.0041ff70
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
push 0x457b50
push eax
mov ecx, ebx
call fcn.0041f400
add esp, 4
mov byte [esp + 0x5a4], 9
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x456764
call fcn.0041ed40
mov byte [esp + 0x5a4], 5
call fcn.0041af00
add esp, 8
add ebx, 4
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x44c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x417c21
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ebp, [esp + 0x3c]
jmp 0x417ea0
mov eax, dword [ebp]
push 0x4564b6
push eax
call fcn.00433544
add esp, 8
test eax, eax
setne al
test al, al
je 0x417fcb
mov esi, dword [esp + 0x5a4]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x417eec
cmp eax, dword [esi]
jne 0x417eec
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x417f22
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4182e8
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0043149e
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x28], edi
mov byte [esp + 0x59c], 0xa
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00420330
push str.c:MapleBackup_
lea ecx, [esp + 0x1c]
call fcn.0041ed40
mov byte [esp + 0x59c], 0xb
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00420330
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
push 1
push edx
push esi
call ebx
mov byte [esp + 0x59c], 0xa
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417f9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x59c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417fc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 4
jmp 0x417ea0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x457b70
call fcn.0041ed40
push ecx
mov byte [esp + 0x5a4], 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x456764
call fcn.0041ed40
mov byte [esp + 0x5a4], 5
call fcn.0041af00
add esp, 4
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x457b94
call fcn.0041ed40
push ecx
mov byte [esp + 0x5a4], 0xd
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x456764
call fcn.0041ed40
mov byte [esp + 0x5a4], 5
call fcn.0041af00
lea ecx, [esp + 0x44]
add esp, 8
mov dword [esp + 0x18], ecx
jmp 0x418050
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push 0x4564b6
push eax
call fcn.00433544
add esp, 8
test eax, eax
setne al
test al, al
je 0x418258
call fcn.004268c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x417ad7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x59c], 0xe
mov esi, dword [esp + 0x5a4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4180cb
cmp eax, dword [esi]
jne 0x4180cb
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x418101
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4182e8
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0043149e
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x59c], 0xf
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ebx, dword [eax - 0xc]
mov edx, dword [esi - 0xc]
mov ebp, eax
mov dword [esp + 0x20], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [edx + ebx]
sub eax, edi
sub ebp, esi
or eax, ecx
mov dword [esp + 0x1c], edx
jge 0x41814e
push edi
lea ecx, [esp + 0x30]
call fcn.00420010
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
cmp ebp, edx
ja 0x418158
add ebp, esi
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push ebx
push eax
add ecx, esi
push ebx
push ecx
call fcn.0043149e
add esp, 0x10
test edi, edi
jl 0x41824e
cmp edi, dword [esi - 8]
jg 0x41824e
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x4181bb
push str.char
push eax
call fcn.00433415
add esp, 8
test eax, eax
je 0x4181bb
sub eax, dword [edi]
cmp eax, 0xffffffff
je 0x4181bb
push 0x18
push str.core_char_
lea ecx, [esp + 0x30]
call fcn.0041ff70
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x4181ec
push str.user
push eax
call fcn.00433415
add esp, 8
test eax, eax
je 0x4181ec
sub eax, dword [edi]
cmp eax, 0xffffffff
je 0x4181ec
push 0x18
push str.core_user_
lea ecx, [esp + 0x30]
call fcn.0041ff70
mov ebx, dword [esp + 0x28]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
add esi, 0xfffffff0
mov byte [esp + 0x59c], 0xe
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41821e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x59c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418242
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
mov dword [esp + 0x18], edi
jmp 0x418050
push 0x80070057
call fcn.004010d0
call fcn.004268c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x418272
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x59c], 0x10
mov edi, dword [esp + 0x5a4]
add edi, 0xfffffff0
lea ebp, [esi - 0x10]
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x418344
cmp dword [ebp + 0xc], 0
lea ebx, [ebp + 0xc]
jl 0x41832b
mov ecx, dword [edi]
cmp ecx, dword [ebp]
jne 0x41832b
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4182d4
cmp eax, dword [edi]
jne 0x4182d4
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41830b
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x4182ed
jmp fcn.00420000
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
add edi, 0x10
push edi
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.0043149e
add esp, 0x10
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x418322
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add esi, 0x10
mov dword [esp + 0x18], esi
jmp 0x418344
mov ecx, dword [esp + 0x5a4]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0041ff70
mov esi, dword [esp + 0x18]
mov ebx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ebp, str.core_public__.yaml
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebx + 0x12]
mov dword [esp + 0x1c], ebp
sub eax, edi
sub ebp, esi
or eax, ecx
jge 0x418374
push edi
lea ecx, [esp + 0x1c]
call fcn.00420010
mov esi, dword [esp + 0x18]
cmp ebp, ebx
ja 0x41837e
add ebp, esi
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x1c]
push 0x12
push eax
push 0x12
add ebx, esi
push ebx
call fcn.0043149e
add esp, 0x10
test edi, edi
jl 0x41824e
cmp edi, dword [esi - 8]
jg 0x41824e
push 0
push esi
mov dword [esi - 0xc], edi
push str.core_public__.yaml
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
add esi, 0xfffffff0
mov byte [esp + 0x59c], 5
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4183dc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x59c], 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418404
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x59c], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41842c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x59c], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418454
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x59c], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41847c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.0041ee00
push 0x104
push 4
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x5ac], 0
call fcn.00431d29
mov dword [esp + 0x59c], 0xffffffff
mov eax, dword [esp + 0x20]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4184c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x594]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x578]
xor ecx, esp
call fcn.0043148f
add esp, 0x58c
ret