Function at 0x475d71
Capabilities:
Check for software breakpoints
Check if file exists
Create directory
Delete file
Identify system language via api
Move file
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x404f6c], 8
je 0x475d8c
push dword [ebp + 8]
call fcn.00476674
leave
ret 4
mov eax, dword [0x404f78]
cmp eax, 0xca
jl 0x475db0
cmp eax, 0xcc
jg 0x475db0
lea edx, [ebp - 0xc]
push edx
call fcn.004759ae
mov eax, dword [ebp - 0xc]
jmp 0x476666
cmp eax, 0xcd
jl 0x476648
cmp eax, 0xe0
jg 0x476648
push 0x28
call fcn.004767b2
cmp eax, 0xcd
jne 0x475e27
lea edx, [ebp - 0xc]
push edx
call fcn.004759ae
push 0x2c
call fcn.004767b2
lea edx, [ebp - 8]
push edx
call fcn.004759ae
mov ebx, 1
mov ecx, dword [ebp - 8]
cmp ecx, 0xffffffff
je 0x47663f
test ecx, ecx
je 0x475e20
mov eax, ecx
and eax, 1
test eax, eax
je 0x475e13
mov eax, ebx
imul eax, dword [ebp - 0xc]
mov ebx, eax
mov eax, dword [ebp - 0xc]
imul eax, eax
mov dword [ebp - 0xc], eax
shr ecx, 1
jmp 0x475dfe
mov eax, ebx
jmp 0x47663f
cmp eax, 0xce
jne 0x475e5c
lea edx, [ebp - 0xc]
push edx
call fcn.004759ae
push 0x2c
call fcn.004767b2
lea edx, [ebp - 8]
push edx
call fcn.004759ae
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0046b957
mov eax, dword [0x4012a8]
jmp 0x47663f
cmp eax, 0xcf
jne 0x475e8f
call dword [sym.imp.msvcrt.dll_rand]
call fcn.00472bfb
cmp word [esi], 0x29
je 0x475e8a
lea edx, [ebp - 0xc]
push edx
call fcn.004759ae
mov ecx, dword [ebp - 0xc]
cmp ecx, 0
je 0x475e88
cdq
idiv ecx
mov eax, edx
jmp 0x47663f
cmp eax, 0xd0
jne 0x475eac
lea edx, [ebp - 0xc]
push edx
call fcn.004759ae
mov eax, dword [ebp - 0xc]
cdq
xor eax, edx
sub eax, edx
jmp 0x47663f
cmp eax, 0xd1
jne 0x475ec9
lea edx, [ebp - 0xc]
push edx
call fcn.004759ae
push dword [ebp - 0xc]
call fcn.0046b85b
jmp 0x47663f
cmp eax, 0xd2
jne 0x475fa6
call fcn.00472bfb
cmp word [esi], 0x29
jne 0x475eea
call dword [sym.imp.kernel32.dll_GetTickCount]
jmp 0x47663f
lea edx, [ebp - 0xc]
push edx
call fcn.004759ae
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x475edf
cmp eax, 1
jne 0x475f09
call fcn.00472d9c
jmp 0x475fa1
cmp eax, 2
jne 0x475f29
mov ebx, dword [0x404f70]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 0x28
push ebx
push eax
call dword [sym.imp.psapi.dll_GetProcessMemoryInfo]
mov eax, dword [ebx + 0xc]
jmp 0x475fa1
cmp eax, 3
jne 0x475f36
call dword [sym.imp.kernel32.dll_GetSystemDefaultUILanguage]
jmp 0x475fa1
cmp eax, 4
jne 0x475f43
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
jmp 0x475fa1
cmp eax, 5
jne 0x475f50
call dword [sym.imp.kernel32.dll_GetConsoleCP]
jmp 0x475fa1
cmp eax, 6
jne 0x475f5d
call dword [sym.imp.kernel32.dll_GetConsoleOutputCP]
jmp 0x475fa1
cmp eax, 7
jne 0x475f70
push dword [0x404f24]
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x475fa1
cmp eax, 8
jne 0x475f7c
mov eax, dword [0x404fc8]
jmp 0x475fa1
cmp eax, 9
jne 0x475f88
mov eax, dword [0x404fb8]
jmp 0x475fa1
cmp eax, 0xa
jne 0x475f94
mov eax, dword [0x404fc4]
jmp 0x475fa1
cmp eax, 0x1b5
jl 0x475fa1
call dword [sym.imp.kernel32.dll_SetConsoleOutputCP]
jmp 0x47663f
cmp eax, 0xd3
jne 0x4760c3
call fcn.00474395
call fcn.00472bfb
xor eax, eax
cmp dword [0x404f6c], 9
je 0x475fcf
cmp dword [0x404f6c], 0xa
jne 0x475fff
mov bx, word [esi]
lea edx, [ebp - 0xc]
push edx
call fcn.00475775
cmp bx, 0x5d
jne 0x475fe6
mov eax, dword [eax + 0x50]
jmp 0x475ffa
mov edi, dword [eax + 0x44]
mov ecx, dword [ebp - 0xc]
lea eax, [edi + ecx*4]
push dword [eax]
call fcn.0046fa43
mov edi, eax
jmp 0x476074
jmp 0x4760be
cmp dword [0x404f6c], 0xd
jne 0x47601e
cmp word [esi], 0x5d
jne 0x47601e
add esi, 2
call fcn.00476e0f
mov eax, dword [eax + 0x4c]
jmp 0x4760be
cmp dword [0x404f6c], 3
je 0x476062
cmp dword [0x404f6c], 0xb
je 0x476062
cmp dword [0x404f6c], 8
jne 0x476047
cmp eax, 0xe1
jl 0x476047
cmp eax, 0xf4
jle 0x476062
cmp dword [0x404f6c], 0xa
je 0x476062
cmp dword [0x404f6c], 0xd
je 0x476062
cmp dword [0x404f6c], 8
jne 0x4760be
mov esi, dword [0x404fac]
lea edx, [ebp - 0xc]
push edx
call fcn.0046eb6f
mov edi, dword [ebp - 0xc]
push 4
nop
call 0x476086
push 0x74007400
add byte [eax], dh
add byte [eax], al
push edi
call dword [sym.imp.shlwapi.dll_StrCmpNIW]
cmp eax, 0
jne 0x47609c
push 0
push edi
call fcn.00473029
jmp 0x4760be
mov ebx, dword [0x404f70]
push ebx
push 0
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesExW]
cmp eax, 0
jne 0x4760bb
mov eax, 0xffffffff
jmp 0x47663f
mov eax, dword [ebx + 0x20]
jmp 0x47663f
cmp eax, 0xd4
jne 0x4760e0
lea edx, [ebp - 0xc]
push edx
call fcn.0046eb6f
push dword [ebp - 0xc]
call fcn.00472c74
jmp 0x47663f
cmp eax, 0xd5
jne 0x47613f
call fcn.00474395
call fcn.00472bfb
cmp dword [0x404f6c], 9
je 0x476103
cmp dword [0x404f6c], 0xa
jne 0x476122
lea edx, [ebp - 0xc]
push edx
call fcn.00475775
mov edi, dword [eax + 0x44]
mov ecx, dword [ebp - 0xc]
lea edi, [edi + ecx*4]
push dword [edi]
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x47663f
mov esi, dword [0x404fac]
lea edx, [ebp - 0xc]
push edx
call fcn.0046eb6f
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x47663f
cmp eax, 0xd6
jne 0x47615c
lea edx, [ebp - 0xc]
push edx
call fcn.0046eb6f
mov edx, dword [ebp - 0xc]
xor eax, eax
mov ax, word [edx]
jmp 0x47663f
cmp eax, 0xd7
jne 0x47619e
lea edx, [ebp - 0xc]
push edx
call fcn.0046eb6f
push 0x2c
call fcn.004767b2
lea edx, [ebp - 8]
push edx
call fcn.0046eb6f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
xor eax, eax
cmp ecx, 0
jle 0x476199
cmp edx, 0
jle 0x476199
push edx
push ecx
call dword [sym.imp.kernel32.dll_lstrcmpW]
add eax, 1
jmp 0x47663f
cmp eax, 0xd8
jne 0x4761af
call fcn.004702e4
jmp 0x47663f
cmp eax, 0xd9
jne 0x47624f
lea edx, [ebp - 0xc]
push edx
call fcn.0046eb6f
push 0x2c
call fcn.004767b2
lea edx, [ebp - 8]
push edx
call fcn.0046eb6f
call fcn.00472bfb
cmp word [esi], 0x29
jne 0x4761e7
mov dword [ebp - 4], 1
jmp 0x4761f7
push 0x2c
call fcn.004767b2
lea edx, [ebp - 4]
push edx
call fcn.004759ae
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
je 0x47663f
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
je 0x47663f
mov edi, dword [ebp - 4]
cmp edi, 1
jl 0x476225
cmp edi, eax
jbe 0x47622c
xor eax, eax
jmp 0x47663f
add edi, edi
add edi, dword [ebp - 0xc]
sub edi, 2
push dword [ebp - 8]
push edi
call dword [sym.imp.shlwapi.dll_StrStrW]
cmp eax, 0
je 0x47624a
sub eax, edi
shr eax, 1
add eax, 1
jmp 0x47663f
cmp eax, 0xda
jne 0x47628b
push 0x404fb4
call fcn.004759ae
mov eax, dword [0x404fb4]
cmp eax, 0
jl 0x47627a
cmp eax, 0xffff
jg 0x47627a
cmp dword [0x404fd4], 1
jne 0x476281
mov eax, 0xffffffff
jmp 0x476286
call fcn.0046cdcf
jmp 0x47663f
cmp eax, 0xdb
jne 0x476300
lea edx, [ebp - 0xc]
push edx
call fcn.0046eb6f
push 0x2c
call fcn.004767b2
lea edx, [ebp - 8]
push edx
call fcn.004759ae
push 0x2c
call fcn.004767b2
lea edx, [ebp - 4]
push edx
call fcn.0046eb6f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp eax, 0
je 0x4762ec
cmp ecx, 0
jl 0x4762ec
cmp ecx, 0xffff
jg 0x4762ec
cmp ecx, dword [0x404fb4]
je 0x4762ec
cmp edx, 0
je 0x4762ec
cmp dword [0x404fd4], 0
jne 0x4762f3
mov eax, 0xffffffff
jmp 0x4762fb
push edx
push ecx
push eax
call fcn.0046d1e0
jmp 0x47663f
cmp eax, 0xdc
jne 0x476311
call fcn.0046cf5a
jmp 0x47663f
cmp eax, 0xdd
jne 0x4763e5
lea edx, [ebp - 0xc]
push edx
call fcn.0046eb6f
push 0x2c
call fcn.004767b2
lea edx, [ebp - 8]
push edx
call fcn.0046eb6f
push 0x2c
call fcn.004767b2
call fcn.00474395
cmp dword [0x404f6c], 9
je 0x476353
cmp dword [0x404f6c], 0xa
jne 0x476360
lea edx, [ebp - 4]
push edx
call fcn.00475775
mov ebx, eax
jmp 0x476374
mov esi, dword [0x404fac]
lea edx, [ebp - 4]
push edx
call fcn.004759ae
mov ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x4763dd
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx]
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
push edx
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_wcstok]
add esp, 8
cmp eax, 0
je 0x4763dd
cmp ebx, 0xffffffff
je 0x4763c8
mov edi, eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebx + 0x50]
jge 0x4047e3
lea ecx, [ecx*4]
mov edx, dword [ebx + 0x44]
add edx, ecx
push edi
call fcn.00472bbb
mov dword [edx], eax
add dword [ebp - 4], 1
lea edx, [ebp - 8]
push edx
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
add esp, 8
jmp 0x47639c
mov eax, dword [ebp - 4]
jmp 0x47663f
cmp eax, 0xde
jne 0x476434
lea edx, [ebp - 0xc]
push edx
call fcn.004759ae
push 0x2c
call fcn.004767b2
lea edx, [ebp - 8]
push edx
call fcn.004759ae
push 0x2c
call fcn.004767b2
lea edx, [ebp - 4]
push edx
call fcn.004759ae
mov ecx, dword [ebp - 8]
add ecx, 1
sub ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
shr eax, cl
or edx, 0xffffffff
mov ecx, dword [ebp - 4]
shl edx, cl
not edx
and eax, edx
jmp 0x47663f
cmp eax, 0xdf
jne 0x4764c8
call fcn.00472bfb
cmp word [esi], 0x29
jne 0x476454
mov eax, dword [0x404fd0]
jmp 0x47663f
lea edx, [ebp - 0xc]
push edx
call fcn.004759ae
mov eax, dword [ebp - 0xc]
cmp eax, 0
jle 0x47648e
cmp eax, 0xffff
jge 0x47648e
cmp dword [0x404fcc], 0
jne 0x47648c
push 1
push 0
push 0x476ade
push 0
push eax
call dword [sym.imp.winmm_timeSetEvent]
mov dword [0x404fcc], eax
jmp 0x4764c3
cmp eax, 0
jne 0x4764b4
cmp dword [0x404fcc], 0
je 0x4764b2
push dword [0x404fcc]
call dword [sym.imp.winmm_timeKillEvent]
mov dword [0x404fcc], 0
jmp 0x4764c3
cmp eax, 0
jge 0x4764c3
mov dword [0x404fd0], 0
jmp 0x47663f
cmp eax, 0xe0
jne 0x47663f
lea edx, [ebp - 0xc]
push edx
call fcn.0046eb6f
push 0x2c
call fcn.004767b2
call fcn.00474395
mov esi, dword [0x404fac]
cmp dword [0x404f6c], 3
je 0x476520
cmp dword [0x404f6c], 0xb
je 0x476520
cmp dword [0x404f6c], 8
jne 0x476517
cmp eax, 0xe1
jl 0x476517
cmp eax, 0xf4
jle 0x476520
cmp dword [0x404f6c], 0xa
jne 0x476542
lea edx, [ebp - 8]
push edx
call fcn.0046eb6f
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_MoveFileW]
test eax, eax
je 0x47662a
jmp 0x47663f
lea edx, [ebp - 8]
push edx
call fcn.004759ae
mov ebx, dword [ebp - 0xc]
nop
call 0x47655e
or dword [eax], eax
and byte [eax], al
or eax, 0xa00
add byte [ebx - 1], dl
adc eax, sym.imp.shlwapi.dll_StrTrimW
push ebx
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
je 0x47663f
mov ecx, dword [ebp - 8]
mov eax, 0xffffffff
cmp ecx, 0
jne 0x4765c4
mov edi, dword [0x404f70]
push 0x104
push edi
call fcn.0046c00c
mov dword [edi + 4], 3
mov eax, dword [0x404f74]
push 0x1000
push eax
call fcn.0046c00c
push ebx
push eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov dword [edi + 8], eax
mov dword [edi + 0x10], 0x215
push edi
call dword [sym.imp.shell32_SHFileOperationW]
jmp 0x476628
cmp ecx, 1
jne 0x4765d8
push 0
push ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x47662a
jmp 0x476628
cmp ecx, 2
jne 0x476606
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x47662a
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x476628
cmp ecx, 3
jne 0x476618
push ebx
call dword [sym.imp.shlwapi.dll_PathFileExistsW]
test eax, eax
je 0x47662a
jmp 0x476628
cmp ecx, 4
jne 0x476628
push ebx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x47662a
jmp 0x47663f
push eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [0x404f2c]
push eax
pop dword [edx + 0x44]
add edx, 0x58
pop eax
push 0x29
call fcn.004767b2
jmp 0x476666
cmp eax, 0
jne 0x476654
call fcn.0046d346
jmp 0x476666
mov esi, dword [0x404fac]
lea edx, [ebp - 0xc]
push edx
call fcn.0046eb6f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
call fcn.00474395
leave
ret 4