Function at 0x59c12d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x54
mov eax, 0x60c8a4
call fcn.004db48b
mov ebx, ecx
mov eax, dword [0x668294]
push 0x819a
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.0041129f
mov esi, dword [ebp - 0x18]
push 0x23
push dword [0x674764]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0xc]
mov edi, eax
cmp ecx, 0x668010
je 0x59c178
call fcn.00407965
cmp edi, 2
je 0x59c4dd
xor eax, eax
cmp edi, 6
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
sete al
push 2
mov dword [ebp - 0x1c], eax
or eax, 0xffffffff
push eax
push 0x100c
push dword [ebx + 0x5a8]
call edi
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
jne 0x59c20a
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x59c4dd
cmp dword [eax + 4], 0
jle 0x59c4dd
mov eax, dword [0x668294]
push 0x8197
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.0041129f
mov esi, dword [ebp - 0x18]
push 0x30
push dword [0x674764]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x59c4dd
call fcn.00407965
jmp 0x59c4dd
lea ecx, [ebp - 0x40]
call fcn.0041b9fb
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x40]
call fcn.0041ba0f
push 2
push esi
push 0x100c
push dword [ebx + 0x5a8]
call edi
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
jne 0x59c216
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x3c]
inc eax
imul eax, esi
push 2
imul eax, eax, 0x105
inc eax
push eax
call fcn.00507365
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x59c4c1
test esi, esi
jle 0x59c4ba
xor edx, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, edx
mov dword [ebp - 0x24], eax
test esi, esi
jle 0x59c3cf
push eax
lea ecx, [ebp - 0x40]
call fcn.0041ba49
mov ecx, dword [ebx + 0x188]
push dword [eax]
call fcn.0042b614
mov esi, dword [eax]
test esi, esi
je 0x59c3ba
lock inc dword [esi + 4]
mov ecx, esi
call fcn.004228b8
test eax, eax
je 0x59c2c5
or eax, 0xffffffff
push eax
push 0xe102
push 0x111
push dword [0x674760]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.005d65c3
push 0x637f04
push dword [eax]
call fcn.005144ec
neg eax
pop ecx
pop ecx
mov ecx, dword [ebp - 0x28]
sbb al, al
inc al
add ecx, 0xfffffff4
mov dword [ebp - 0x20], eax
cmp ecx, 0x668010
je 0x59c2fd
call fcn.00407965
mov eax, dword [ebp - 0x20]
mov ecx, esi
test al, al
jne 0x59c3b5
lea eax, [ebp - 0x30]
push eax
call fcn.0041be56
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x59c33c
test al, 0x10
jne 0x59c33c
push dword [ebp - 0x30]
push edi
call fcn.00504cbe
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov eax, dword [eax - 8]
lea edi, [edi + eax*2]
add edi, 2
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x1c], 0
je 0x59c3a0
mov eax, dword [0x668294]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0042bee0
lea eax, [ebp - 0x30]
push eax
call fcn.004270c3
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x59c38d
test al, 0x10
jne 0x59c38d
push edi
push dword [ebp - 0x14]
call fcn.00504cbe
mov eax, dword [edi - 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + eax*2]
add ecx, 2
mov dword [ebp - 0x14], ecx
lea ecx, [edi - 0xc]
cmp ecx, 0x668010
je 0x59c39d
call fcn.00407965
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x59c3b3
call fcn.00407965
mov ecx, esi
call fcn.00416ed3
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x3c]
jl 0x59c27c
mov ecx, dword [ebp - 0x18]
xor edx, edx
xorps xmm0, xmm0
mov eax, dword [ebx + 4]
push 0x40
mov dword [ebp - 0x60], eax
pop eax
movlpd qword [ebp - 0x4a], xmm0
mov dword [ebp - 0x5c], 3
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
mov word [ebp - 0x50], ax
mov dword [ebp - 0x4e], edx
cmp word [ecx], dx
je 0x59c416
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x59c4b7
cmp dword [ebp - 0x4e], eax
jne 0x59c4b7
xor edx, edx
mov esi, dword [ebx + 0x188]
test esi, esi
je 0x59c425
mov esi, dword [esi + 0x1c]
jmp 0x59c42a
or eax, 0xffffffff
mov esi, eax
cmp dword [0x673c90], 0
je 0x59c443
cmp dword [0x673bdc], 0
mov dword [ebp - 0x24], 1
jne 0x59c446
mov dword [ebp - 0x24], edx
mov edi, dword [ebp - 0x3c]
jmp 0x59c47b
push edi
lea ecx, [ebp - 0x40]
call fcn.0041ba49
cmp dword [eax], esi
jge 0x59c45b
dec esi
jmp 0x59c461
push 0xffffffffffffffff
pop ecx
cmove esi, ecx
push dword [ebp - 0x24]
push ecx
push dword [eax]
mov ecx, dword [ebx + 0x188]
call fcn.005978c0
mov eax, dword [ebx + 0x188]
inc dword [eax + 0x24]
sub edi, 1
jns 0x59c44b
mov eax, dword [ebx + 0x188]
push 0
mov dword [eax + 0x1c], esi
mov eax, dword [ebx + 0x188]
push dword [eax + 4]
push 0x102f
push dword [ebx + 0x5a8]
call dword [sym.imp.USER32.dll_SendMessageW]
or eax, 0xffffffff
mov ecx, ebx
push eax
push 0
call fcn.005a5482
call fcn.005c034d
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0050524d
pop ecx
mov ecx, ebx
call fcn.005a098c
test eax, eax
je 0x59c4d5
push 1
mov ecx, ebx
call fcn.005a092c
lea ecx, [ebp - 0x40]
call fcn.0041ba68
xor eax, eax
call fcn.004db459
ret 0x10