Function at 0x1001e220
Capabilities:
Check if file exists
Check mutex on windows
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d721f
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x100fd16c]
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
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100b24f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1012a9a8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x258]
call fcn.10009540
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
mov dword [ebp - 4], 0
push eax
call fcn.1000dff0
add eax, 0x10
mov dword [ebp - 0x25c], eax
push 0
mov byte [ebp - 4], 1
call fcn.100b9c25
push eax
call fcn.100b9abc
add esp, 0xc
call fcn.1008ecb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001e421
push 0x4c
push str.d:jenkins.jenkinsworkspacedefragger_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.10010ac0
push 3
push 0x100dda10
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.10010ac0
mov byte [ebp - 4], 3
call fcn.1008ecb0
mov edi, eax
lea ecx, [ebp - 0x2f4]
push 0x61
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10009a90
mov esi, eax
push str.change_file_name
push esi
mov byte [ebp - 4], 4
call fcn.1000b160
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f4]
call fcn.1000b290
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x1001e3c8
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e3be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001edfd
push edx
push ecx
call fcn.1008fde5
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x1001e421
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e417
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ee02
push edx
push ecx
call fcn.1008fde5
add esp, 8
call fcn.10060a00
movzx eax, ax
push eax
call fcn.10060a00
movzx eax, ax
push eax
call fcn.10060a00
movzx eax, ax
push eax
call fcn.10060a00
movzx eax, ax
lea ecx, [ebp - 0x249]
push eax
call fcn.1001a760
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.1000e6c0
add esp, 0x18
lea eax, [ebp - 0x250]
push eax
call fcn.1001bb60
mov ecx, eax
call fcn.100187b0
mov esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x250]
push esi
push str.Utils_s
push eax
mov byte [ebp - 4], 5
call fcn.1001b230
add esp, 0xc
call fcn.1008ecb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001e602
push 0x4c
push str.d:jenkins.jenkinsworkspacedefragger_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.10010ac0
push 3
push 0x100dda10
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.10010ac0
mov byte [ebp - 4], 7
call fcn.1008ecb0
mov ebx, eax
lea ecx, [ebp - 0x2f4]
push 0x68
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10009a90
mov edi, eax
push str.tend_file_full_path_:
push edi
mov byte [ebp - 4], 8
call fcn.1000b160
mov ecx, dword [ebp - 0x250]
mov edx, 0x100dd968
test ecx, ecx
cmovne edx, ecx
push edx
push edi
call fcn.100089c0
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2f4]
call fcn.1000b290
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x1001e5a9
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e59f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ee07
push edx
push ecx
call fcn.1008fde5
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1001e602
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e5f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ee0c
push edx
push ecx
call fcn.1008fde5
add esp, 8
call fcn.1001bc20
cmp dword [eax + 0x34], 0
jne 0x1001e7b2
call fcn.1008ecb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001e6ed
push 0x4c
push str.d:jenkins.jenkinsworkspacedefragger_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.10010ac0
push 3
push 0x100dda10
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 9
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.10010ac0
mov byte [ebp - 4], 0xa
call fcn.1008ecb0
mov ebx, eax
lea ecx, [ebp - 0x2f4]
push 0x6b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a90
mov edi, eax
push str.copy_file_with_changing_file_md5
push edi
mov byte [ebp - 4], 0xb
call fcn.1000b160
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f4]
call fcn.1000b290
lea ecx, [ebp - 0x248]
call fcn.1000a520
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.1000a520
lea ecx, [ebp - 0x249]
call fcn.1000dfe0
mov edx, dword [ebp - 0x250]
mov ecx, 1
mov byte [ebp - 4], 0xc
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x1001e72c
push 0x104
lea ecx, [ebp - 0x250]
call fcn.1000ed50
mov edx, dword [ebp - 0x250]
cmp dword [edx - 8], 0x104
jl 0x1001ee11
xor ecx, ecx
mov dword [edx - 0xc], 0x104
mov eax, dword [ebp - 0x250]
push ecx
push edx
push ecx
mov word [eax + 0x208], cx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x249]
call fcn.100227c0
mov eax, dword [ebp - 0x250]
push dword [eax - 8]
push eax
call fcn.100b5b0c
mov edx, eax
add esp, 8
test edx, edx
js 0x1001ee11
mov ecx, dword [ebp - 0x250]
cmp edx, dword [ecx - 8]
jg 0x1001ee11
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x250]
mov byte [ebp - 4], 5
mov word [eax + edx*2], cx
lea ecx, [ebp - 0x249]
call fcn.10010340
jmp 0x1001e8a3
call fcn.1008ecb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001e88e
push 0x4c
push str.d:jenkins.jenkinsworkspacedefragger_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.10010ac0
push 3
push 0x100dda10
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.10010ac0
mov byte [ebp - 4], 0xe
call fcn.1008ecb0
mov ebx, eax
lea ecx, [ebp - 0x2f4]
push 0x73
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a90
mov edi, eax
push str.copy_file
push edi
mov byte [ebp - 4], 0xf
call fcn.1000b160
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f4]
call fcn.1000b290
lea ecx, [ebp - 0x248]
call fcn.1000a520
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.1000a520
push 0
push dword [ebp - 0x250]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp - 0x250]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
jne 0x1001e99a
call fcn.1008ecb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001eae6
push 0x4c
push str.d:jenkins.jenkinsworkspacedefragger_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.10010ac0
push 3
push 0x100dda10
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.10010ac0
mov byte [ebp - 4], 0x11
call fcn.1008ecb0
mov ebx, eax
lea ecx, [ebp - 0x2f4]
push 0x7c
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a90
mov edi, eax
push str.copy_file_fail_
push edi
mov byte [ebp - 4], 0x12
call fcn.1000b160
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f4]
call fcn.1000b290
lea ecx, [ebp - 0x248]
call fcn.1000a520
lea ecx, [ebp - 0x230]
call fcn.1000a520
or ebx, 0xffffffff
jmp 0x1001eae6
lea eax, [ebp - 0x254]
push eax
call fcn.1001bb60
mov ecx, eax
call fcn.10018770
push eax
mov byte [ebp - 4], 0x13
call fcn.100609b0
mov edx, dword [ebp - 0x254]
add esp, 4
mov edi, eax
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001e9dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x1001eac5
call fcn.1008ecb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001eae6
push 0x4c
push str.d:jenkins.jenkinsworkspacedefragger_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.10010ac0
push 3
push 0x100dda10
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.10010ac0
mov byte [ebp - 4], 0x15
call fcn.1008ecb0
mov ebx, eax
lea ecx, [ebp - 0x2f4]
push 0x84
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a90
mov edi, eax
push str.already_has_mutex_LDSMUTEX
push edi
mov byte [ebp - 4], 0x16
call fcn.1000b160
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f4]
call fcn.1000b290
lea ecx, [ebp - 0x248]
call fcn.1000a520
lea ecx, [ebp - 0x230]
call fcn.1000a520
or ebx, 0xffffffff
jmp 0x1001eae6
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.HELPERFUZZYMODE_A2251B37_99C5_4AC8_9FDC_8DEAD06CC315
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x254], eax
test eax, eax
jne 0x1001eb4d
mov edx, dword [ebp - 0x250]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001eb07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001eb22
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x258]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001ede1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1001ede1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001ec49
call fcn.1008ecb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001ec3d
push 0x4c
push str.d:jenkins.jenkinsworkspacedefragger_helpercommonhelpercommonhelper.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.10010ac0
push 3
push 0x100dda10
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.10010ac0
mov byte [ebp - 4], 0x18
call fcn.1008ecb0
mov ebx, eax
lea ecx, [ebp - 0x2f4]
push 0x93
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a90
mov edi, eax
push str.error___:_already_has_mutex_HELPERFUZZYMODE.Plz_check_other_module
push edi
mov byte [ebp - 4], 0x19
call fcn.1000b160
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f4]
call fcn.1000b290
lea ecx, [ebp - 0x248]
call fcn.1000a520
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.1000a520
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0x2710
push 1
push 1
push 0
push dword [ebp - 0x250]
call fcn.10060b20
add esp, 0x1c
mov ebx, eax
mov dword [ebp - 0x254], ebx
call fcn.1008ecb0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x1001ed7e
push 0x4c
mov dword [ebp - 0x220], ecx
mov byte [ebp - 0x230], cl
lea ecx, [ebp - 0x230]
push str.d:jenkins.jenkinsworkspacedefragger_helpercommonhelpercommonhelper.cpp
mov dword [ebp - 0x21c], 0xf
call fcn.10010ac0
push 3
push 0x100dda10
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.10010ac0
mov byte [ebp - 4], 0x1b
call fcn.1008ecb0
mov ebx, eax
lea ecx, [ebp - 0x2f4]
push 0x9b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a90
mov edi, eax
push str.run_app_:
push edi
mov byte [ebp - 4], 0x1c
call fcn.1000b160
mov ecx, dword [ebp - 0x250]
mov eax, 0x100dd968
test ecx, ecx
cmovne eax, ecx
push eax
push edi
call fcn.100089c0
push str._ret_:
push edi
call fcn.1000b160
add esp, 0x18
mov ecx, edi
push dword [ebp - 0x254]
call fcn.1000ac50
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2f4]
call fcn.1000b290
lea ecx, [ebp - 0x248]
call fcn.1000a520
lea ecx, [ebp - 0x230]
call fcn.1000a520
mov ebx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x250]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001eda2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001edbd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x258]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1001eddf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.10090156
mov esp, ebp
pop ebp
ret
call fcn.100b58f9
call fcn.100b58f9
call fcn.100b58f9
call fcn.100b58f9
push 0x80070057
call fcn.1000de90
int3