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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4129b8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x418084]
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
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov ebx, ecx
mov eax, 0x419d90
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x18], 0xf
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c80
sub eax, edx
mov edi, eax
mov eax, 0x419d90
lea esi, [ebp - 0x2c]
call fcn.00404ec0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push eax
mov edi, esi
mov byte [ebp - 0x68], 0x5c
call fcn.00403fc0
cmp eax, 0xffffffff
je 0x401e17
inc eax
mov ecx, esi
push eax
push ecx
xor ebx, ebx
lea esi, [ebp - 0x64]
call fcn.00403d40
push eax
mov eax, str.lib_tools.jar
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00404820
add esp, 4
mov esi, eax
mov edx, edi
cmp edx, esi
je 0x401d3c
cmp dword [ebp - 0x18], 0x10
jb 0x401cf5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040554a
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [esi + 0x14], 0x10
jae 0x401d1f
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
call fcn.00405560
add esp, 0xc
jmp 0x401d26
mov edx, dword [esi]
mov dword [ebp - 0x2c], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
jmp 0x401d41
xor ebx, ebx
lea edi, [ebx + 0xf]
cmp dword [ebp - 0x34], 0x10
jb 0x401d53
mov edx, dword [ebp - 0x48]
push edx
call fcn.0040554a
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0x401d71
mov eax, dword [ebp - 0x64]
push eax
call fcn.0040554a
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401d7d
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401e14
mov esi, dword [ebp - 0x6c]
xor edi, edi
mov ebx, 0xf
lea ecx, [ebp - 0x2c]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov byte [esi], 0
cmp esi, ecx
je 0x401dfe
cmp dword [esi + 0x14], 0x10
jb 0x401db8
mov edx, dword [esi]
push edx
call fcn.0040554a
add esp, 4
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov byte [esi], 0
cmp dword [ebp - 0x18], 0x10
jae 0x401de9
mov eax, dword [ebp - 0x1c]
inc eax
push eax
lea ecx, [ebp - 0x2c]
push ecx
push esi
call fcn.00405560
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
add esp, 0xc
mov dword [esi + 0x14], ecx
mov eax, esi
jmp 0x401e4a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov dword [esi], edx
mov dword [esi + 0x14], ecx
mov eax, esi
jmp 0x401e4a
cmp dword [ebp - 0x18], 0x10
jb 0x401e10
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040554a
add esp, 4
mov eax, esi
jmp 0x401e4a
mov ebx, dword [ebp - 0x6c]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
xor edi, edi
mov eax, 0x4152cc
mov esi, ebx
mov byte [ebx], 0
call fcn.00404ec0
cmp dword [ebp - 0x18], 0x10
jb 0x401e48
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040554a
add esp, 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.0040553b
mov esp, ebp
pop ebp
ret